From: Ralf Baechle Date: Thu, 8 Mar 2007 00:14:25 +0000 (+0000) Subject: [CHAR] ds1286: Fix handling of seconds in RTC_ALM_SET ioctl. X-Git-Tag: v2.6.21-rc4~100^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b35692ebdef0c1cd4a05a58559a94ced54ff9c82;p=pandora-kernel.git [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 --- Reading git-diff-tree failed