drivers/rtc/rtc-x1205.c: use sign_extend32() for sign extension
authorMartin Kepplinger <[email protected]>
Thu, 16 Apr 2015 19:45:09 +0000 (12:45 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Apr 2015 13:03:59 +0000 (09:03 -0400)
commit86e66604fca053e5ecb2427538aa233637119409
tree62499fe6e2d21a0fc75d3ad6dce735ea183cffe8
parente706974dc3e2f44891e736f4a96eb88b60356178
drivers/rtc/rtc-x1205.c: use sign_extend32() for sign extension

Despite its name, sign_extend32() is safe to use for 8 bit types too.
(See https://lkml.org/lkml/2015/1/18/289).

Signed-off-by: Martin Kepplinger <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-x1205.c