rtc: pcf2123: use sign_extend32() for sign extension
authorMartin Kepplinger <martink@posteo.de>
Mon, 18 Apr 2016 10:17:44 +0000 (12:17 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 4 Jun 2016 13:50:44 +0000 (15:50 +0200)
commit82df3e045d8cce5eaeb9bf1ed1d8d8841b04a41a
treee55773fe9fbcde4c4e5ed9f57df685d9133f1551
parentc5776dec8f2a90a0aa9e197c2900f68fda8dd978
rtc: pcf2123: use sign_extend32() for sign extension

Use sign_extend32() instead of open coding sign extension.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pcf2123.c