~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/rtc/rtc-twl.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
        return ret;
214
214
}
215
215
 
216
 
static int twl_rtc_update_irq_enable(struct device *dev, unsigned enabled)
217
 
{
218
 
        int ret;
219
 
 
220
 
        if (enabled)
221
 
                ret = set_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M);
222
 
        else
223
 
                ret = mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M);
224
 
 
225
 
        return ret;
226
 
}
227
 
 
228
216
/*
229
217
 * Gets current TWL RTC time and date parameters.
230
218
 *
433
421
        .read_alarm     = twl_rtc_read_alarm,
434
422
        .set_alarm      = twl_rtc_set_alarm,
435
423
        .alarm_irq_enable = twl_rtc_alarm_irq_enable,
436
 
        .update_irq_enable = twl_rtc_update_irq_enable,
437
424
};
438
425
 
439
426
/*----------------------------------------------------------------------*/