Skip to content
Commit f5e5b734 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c5eb2a2b
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