Skip to content
Commit b35692eb authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 45592145
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment