diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-01-11 19:43:56 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 14:56:40 +0100 |
commit | 3c781190d11ca44752562867d76ccfb8d0a45ac3 (patch) | |
tree | 3e3050046c066b150489eb43413bddeeea6c704b /include/faraday/fttmr010.h | |
parent | 52755b12e30e45501ccea9260d47a2b6aba12a91 (diff) | |
download | u-boot-imx-3c781190d11ca44752562867d76ccfb8d0a45ac3.zip u-boot-imx-3c781190d11ca44752562867d76ccfb8d0a45ac3.tar.gz u-boot-imx-3c781190d11ca44752562867d76ccfb8d0a45ac3.tar.bz2 |
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>
Diffstat (limited to 'include/faraday/fttmr010.h')
0 files changed, 0 insertions, 0 deletions