/* Update the clockactivity mode bits in @v to be @clockact for the @oh hwmod. Used for additional powersaving on some modules. Does not write to the hardware. Returns -EINVAL upon error or 0 upon success.  */
static int _set_clockactivity(struct omap_hwmod *oh, u8 clockact, u32 *v)
/* Update the clockactivity mode bits in @v to be @clockact for the @oh hwmod. Used for additional powersaving on some modules. Does not write to the hardware. Returns -EINVAL upon error or 0 upon success.  */
static int _set_clockactivity(struct omap_hwmod *oh, u8 clockact, u32 *v)
{
	if (!oh->sysconfig ||
	    !(oh->sysconfig->sysc_flags & SYSC_HAS_CLOCKACTIVITY))
		return -EINVAL;
	*v &= ~SYSC_CLOCKACTIVITY_MASK;
	*v |= clockact << SYSC_CLOCKACTIVITY_SHIFT;
	return 0;
}