]> git.baikalelectronics.ru Git - kernel.git/commit
[CHAR] ds1286: Fix handling of seconds in RTC_ALM_SET ioctl.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 8 Mar 2007 00:14:25 +0000 (00:14 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 8 Mar 2007 01:10:30 +0000 (01:10 +0000)
commitd0639219f1178c635d1e424547fbe145e7dc511e
tree3161106dfae3b4a83c6ca65bbf8a99eb62402915
parent33c6d671bbaaf8180e5da937649e46fa7f64c82a
[CHAR] ds1286: Fix handling of seconds in RTC_ALM_SET ioctl.

 o Fix use of uninitialized variable sec.
 o Make the RTC_ALM_SET ioctl return -EINVAL for non-zero seconds - the
   DS1286 has no second field for the alarm time.
 o Replace the obscure BIN_TO_BCD macro with BIN2BCD.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/char/ds1286.c