Russell King f5e5b734d4 [ARM] rtc-pcf8583: don't use BCD_TO_BIN/BIN_TO_BCD
Both BCD_TO_BIN(x) and BIN_TO_BCD(x) have an unexpected side-effect -
not only do they return the value as expected, they _modify_ their
argument in the process.

Let's play it safe and avoid these macros.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2007-03-04 20:12:07 +00:00
..
2007-03-01 14:53:37 -08:00
2006-03-27 08:44:51 -08:00
2007-03-01 14:53:37 -08:00
2007-02-20 17:10:15 -08:00
2007-02-20 17:10:15 -08:00
2006-10-04 08:15:14 -07:00
2006-12-10 09:55:40 -08:00
2006-12-07 08:39:31 -08:00