rtc: ds1307: improve trickle charger initialization
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 12 Jul 2017 05:49:28 +0000 (07:49 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 31 Aug 2017 23:10:13 +0000 (01:10 +0200)
commitd8490fd55ab90e0039242a5f53acf8a6c2c5e961
tree4cfd89803fe3d974fe172f5beb1ff16cd098b2d9
parent0b6ee8059448003591cc67fa1ee7db4d979a5bab
rtc: ds1307: improve trickle charger initialization

Instead of storing the trickle_charger_setup value in struct chip_desc
we can let function ds1307_trickle_init return it because it's used
in the probe function only.
This allows us to constify struct chip_desc variables in a next step.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1307.c