backlight: lm3630a: Add an enable gpio for the HWEN pin
authorAndreas Kemnade <andreas@kemnade.info>
Thu, 12 Sep 2019 21:32:57 +0000 (23:32 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 2 Oct 2019 13:25:27 +0000 (14:25 +0100)
commit0e0e78e32e723a1ee48207a2ad091afb30f6f1c5
treef63c75dafd45b505f2d08c68be167ae692cd6f68
parentae92365cdd759748b4b0671109f456a1bb7aa57d
backlight: lm3630a: Add an enable gpio for the HWEN pin

For now just enable it in the probe function to allow I2C
access. Disabling also means resetting the register values
to default and according to the datasheet does not give
power savings.

Tested on Kobo Clara HD.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/lm3630a_bl.c