gpio: pmic-eic-sprd: Add can_sleep flag for PMIC EIC chip
authorWenhua Lin <Wenhua.Lin@unisoc.com>
Thu, 21 Sep 2023 12:25:27 +0000 (20:25 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 27 Sep 2023 07:12:09 +0000 (09:12 +0200)
commit26d9e5640d2130ee16df7b1fb6a908f460ab004c
treea3c439822aa08b65b78600f438a2fe1e6e1db61e
parent9e8bc2dda5a7a8e2babc9975f4b11c9a6196e490
gpio: pmic-eic-sprd: Add can_sleep flag for PMIC EIC chip

The drivers uses a mutex and I2C bus access in its PMIC EIC chip
get implementation. This means these functions can sleep and the PMIC EIC
chip should set the can_sleep property to true.

This will ensure that a warning is printed when trying to get the
value from a context that potentially can't sleep.

Fixes: 348f3cde84ab ("gpio: Add Spreadtrum PMIC EIC driver support")
Signed-off-by: Wenhua Lin <Wenhua.Lin@unisoc.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-pmic-eic-sprd.c