]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: cmos: Refactor code by using the new dmi_get_bios_year() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 23 Jan 2020 13:14:37 +0000 (15:14 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 25 Jan 2020 20:55:14 +0000 (21:55 +0100)
commit604c521259c8051b7607c000eda7938f7a705d92
treeb4e8ff4c1cbf27c4a1fd179c857af3e20d372f81
parent5848ad2f1bcbb1bfbf3db3ee1a51fa5d0994ead6
rtc: cmos: Refactor code by using the new dmi_get_bios_year() helper

Refactor code by using the new dmi_get_bios_year() helper instead of
open coding its functionality. This also makes logic slightly clearer.

No changes intended.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Guilherme G. Piccoli <gpiccoli@canonical.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200123131437.28157-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-cmos.c