rtc: rx8010: use range checking provided by core RTC code
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 14 Sep 2020 15:46:01 +0000 (17:46 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Sep 2020 08:50:38 +0000 (10:50 +0200)
commit2fc1af3095af5cbcd8fc406610dc196b62e3ed21
tree8a7c8681eb6384217c7fdf97110718c753df9cf6
parent9868bc1ce272dc0387488e779c585e7a12cf7a1b
rtc: rx8010: use range checking provided by core RTC code

We don't need to check the time range manually in set_time(), we can
use range_min and range_max exposed by struct rtc_device.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200914154601.32245-15-brgl@bgdev.pl
drivers/rtc/rtc-rx8010.c