Files
u-boot-tk1-som/drivers
Hans de Goede 3c781190d1 sunxi: axp221: Protect axp221_init against multiple calls
The voltage setting code knows it needs to call axp221_init before calling
the various voltage setting functions.

But users of axp utility functions like axp221_get_sid() do not know this,
so the utility functions always call axp221_init() to ensure that the
p2wi / rsb setup magic has been done.

Since doing this repeatedly is quite expensive, add a check to axp221_init
so that it only does the initialization once.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
2015-01-14 14:56:40 +01:00
..
2014-09-24 18:30:29 -04:00
2014-09-24 18:30:28 -04:00
2015-01-08 11:00:45 -05:00
2015-01-13 07:25:00 -08:00
2015-01-05 12:08:55 -05:00
2014-09-24 18:30:28 -04:00
2015-01-09 00:03:28 +05:30
2014-12-31 19:10:13 +01:00
2014-09-24 18:30:28 -04:00
2014-09-24 18:30:28 -04:00