linux/drivers/rtc/rtc-ds1685.c
/**
 * ds1685_rtc_end_ctrl_access - end ctrl access on the rtc.
 * @rtc: pointer to the ds1685 rtc structure.
 * @flags: irq flags variable for spin_unlock_irqrestore.
 *
 * This ends what was started by ds1685_rtc_begin_ctrl_access:
 *  - Switches the rtc back to bank 0.
 *  - Unsets the spinlock on the rtc IRQ.
 */
end ctrl access on the rtc.
@rtc: pointer to the ds1685 rtc structure.
@flags: irq flags variable for spin_unlock_irqrestore.

This ends what was started by ds1685_rtc_begin_ctrl_access:
- Switches the rtc back to bank 0.
- Unsets the spinlock on the rtc IRQ.
end ctrl access on the rtc . @rtc : pointer to the ds1685 rtc structure . @flags : irq flags variable for spin_unlock_irqrestore . This ends what was started by ds1685_rtc_begin_ctrl_access : - Switches the rtc back to bank 0 . - Unsets the spinlock on the rtc IRQ .
static inline void
ds1685_rtc_end_ctrl_access(struct ds1685_priv *rtc, unsigned long flags)
{
	ds1685_rtc_switch_to_bank0(rtc);
	spin_unlock_irqrestore(&rtc->lock, flags);
}
static inline void ds1685_rtc_end_ctrl_access ( struct ds1685_priv * rtc , unsigned long flags ) { ds1685_rtc_switch_to_bank0 ( rtc ) ; spin_unlock_irqrestore ( & rtc -> lock , flags ) ; }
ds1685_rtc_end_ctrl_access - end ctrl access on the rtc.
ds1685_rtc_end_ctrl_access - end ctrl access on the rtc .