rtc: ds3232: add register access error checks
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 6 Mar 2016 15:27:50 +0000 (00:27 +0900)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:08:36 +0000 (17:08 +0100)
commit7b4393a62f784bdd295c397c640cd93238ded0be
tree1434700a1d287f380515f953473fe5b73b7c2d14
parentdfc2532b55a4989930d0d67cdf83da9ccb2a1b5b
rtc: ds3232: add register access error checks

Add missing register access error checks and make it return error code
or print error message.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds3232.c