Input: stmfts - acknowledge that setting brightness is a blocking call
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Feb 2019 22:40:40 +0000 (14:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 05:21:53 +0000 (07:21 +0200)
commita10c88bf365a6017a839346317e242c67a1d8a94
tree18c5ce4c9881ac90204bec8aa260d576bc4b3e64
parenta99b9c82bde6c3839457b3318cc5b207e8cc4c23
Input: stmfts - acknowledge that setting brightness is a blocking call

commit 937c4e552fd1174784045684740edfcea536159d upstream.

We need to turn regulators on and off when switching brightness, and
that may block, therefore we have to set stmfts_brightness_set() as
LED's brightness_set_blocking() method.

Fixes: 78bcac7b2ae1 ("Input: add support for the STMicroelectronics FingerTip touchscreen")
Acked-by: Andi Shyti <andi@etezian.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/touchscreen/stmfts.c