aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2019-10-22 10:36:24 +0200
committerLee Jones <[email protected]>2019-11-11 11:34:01 +0000
commit706dc68102bc7421a9e6573d149ab6d769d71cc7 (patch)
treec8e7e4d5992802b25ac401df7a382fc14d9a59bd /lib/mpi/mpiutil.c
parent3cfc291bfe3f071a285fa6b1c0c6ca22a83c2f06 (diff)
backlight: gpio: Explicitly set the direction of the GPIO
The GPIO backlight driver currently requests the line 'as is', without acively setting its direction. This can lead to problems: if the line is in input mode by default, we won't be able to drive it later when updating the status and also reading its initial value doesn't make sense for backlight setting. Request the line 'as is' initially, so that we can read its value without affecting it but then change the direction to output explicitly when setting the initial brightness. Also: check the current direction and only read the value if it's output. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions