linux/drivers/rtc
Lei Xu a2d6d2fa90 drivers/rtc/rtc-ds3232.c: fix time range difference between linux and RTC chip
In linux rtc_time struct, tm_mon range is 0~11, tm_wday range is 0~6,
while in RTC HW REG, month range is 1~12, day of the week range is 1~7,
this patch adjusts difference of them.

The efect of this bug was that most of month will be operated on as the
next month by the hardware (When in Jan it maybe even worse).  For
example, if in May, software wrote 4 to the hardware, which handled it as
April.  Then the logic would be different between software and hardware,
which would cause weird things to happen.

Signed-off-by: Lei Xu <B33228@freescale.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Jack Lan <jack.lan@freescale.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-02-25 15:07:37 -08:00
..
Kconfig RTC: Revert UIE emulation removal 2011-02-17 14:59:41 -08:00
Makefile rtc: Add drivers/rtc/rtc-mrst.c 2010-11-11 11:34:27 +01:00
class.c RTC: Prevents a division by zero in kernel code. 2011-02-03 12:59:50 -08:00
hctosys.c
interface.c RTC: Re-enable UIE timer/polling emulation 2011-02-17 14:59:42 -08:00
rtc-ab3100.c drivers/rtc/rtc-ab3100.c: add missing platform_set_drvdata() in ab3100_rtc_probe() 2010-09-22 17:22:39 -07:00
rtc-ab8500.c mfd: Align ab8500 with the abx500 interface 2010-10-29 00:29:19 +02:00
rtc-at32ap700x.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-at91rm9200.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-at91sam9.c RTC: fix typo in drivers/rtc/rtc-at91sam9.c 2011-02-25 14:00:56 -08:00
rtc-au1xxx.c
rtc-bfin.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-bq32k.c
rtc-bq4802.c
rtc-cmos.c rtc-cmos: fix suspend/resume 2011-01-13 08:03:12 -08:00
rtc-coh901331.c
rtc-core.h
rtc-davinci.c
rtc-dev.c RTC: Re-enable UIE timer/polling emulation 2011-02-17 14:59:42 -08:00
rtc-dm355evm.c
rtc-ds1216.c
rtc-ds1286.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-ds1302.c sh: mach-snapgear: Kill off machtype, consolidate board def. 2010-10-29 19:06:53 +09:00
rtc-ds1305.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-ds1307.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-ds1374.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-ds1390.c
rtc-ds1511.c
rtc-ds1553.c
rtc-ds1672.c
rtc-ds1742.c
rtc-ds3232.c drivers/rtc/rtc-ds3232.c: fix time range difference between linux and RTC chip 2011-02-25 15:07:37 -08:00
rtc-ds3234.c
rtc-efi.c
rtc-ep93xx.c
rtc-fm3130.c
rtc-generic.c
rtc-imxdi.c
rtc-isl1208.c
rtc-isl12022.c
rtc-jz4740.c drivers/rtc/rtc-jz4740.c: add alarm function 2010-10-27 18:03:06 -07:00
rtc-lib.c RTC: Rework RTC code to use timerqueue for events 2010-12-10 22:24:24 -08:00
rtc-lpc32xx.c rtc: rtc-lpc32xx: introduce RTC driver for the LPC32XX SoC 2010-10-27 18:03:05 -07:00
rtc-m41t80.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-m41t94.c
rtc-m48t35.c
rtc-m48t59.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-m48t86.c
rtc-max6900.c
rtc-max6902.c rtc: rtc-max6902 - set driver data in max6902_probe() 2011-01-13 08:03:12 -08:00
rtc-max8925.c
rtc-max8998.c mfd: Support LP3974 RTC 2011-01-14 12:38:16 +01:00
rtc-mc13xxx.c rtc: Add support for the rtc found in the MC13892 PMIC 2010-10-29 00:30:01 +02:00
rtc-mpc5121.c
rtc-mrst.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-msm6242.c RTC: Fix minor compile warning 2011-02-03 13:02:50 -08:00
rtc-mv.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-mxc.c
rtc-nuc900.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-10-24 13:41:39 -07:00
rtc-omap.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-pcap.c
rtc-pcf2123.c
rtc-pcf8563.c
rtc-pcf8583.c
rtc-pcf50633.c
rtc-pl030.c
rtc-pl031.c drivers/rtc/rtc-pl031.c: do not mark PL031 IRQ as shared 2010-09-09 18:57:24 -07:00
rtc-proc.c drivers/rtc/rtc-proc.c: add module_put on error path in rtc_proc_open() 2011-02-11 16:12:20 -08:00
rtc-ps3.c
rtc-pxa.c
rtc-r9701.c
rtc-rp5c01.c RTC: Fix minor compile warning 2011-02-03 13:02:50 -08:00
rtc-rs5c313.c rtc: rtc-rs5c313: ctrl_in/outX to __raw_read/writeX conversion. 2010-10-27 15:30:32 +09:00
rtc-rs5c348.c
rtc-rs5c372.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-rx8025.c rtc: don't use flush_scheduled_work() 2010-12-24 16:00:17 +01:00
rtc-rx8581.c
rtc-s3c.c rtc: rtc-s3c: add rtc_valid_tm in s3c_rtc_gettime() 2010-10-27 18:03:06 -07:00
rtc-s35390a.c
rtc-sa1100.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-sh.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-starfire.c
rtc-stk17ta8.c
rtc-stmp3xxx.c
rtc-sun4v.c
rtc-sysfs.c
rtc-test.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-twl.c
rtc-tx4939.c
rtc-v3020.c
rtc-vr41xx.c RTC: Convert rtc drivers to use the alarm_irq_enable method 2011-02-03 13:02:35 -08:00
rtc-wm831x.c
rtc-wm8350.c
rtc-x1205.c