diff options
| author | Junjie Cao <junjie.cao@intel.com> | 2026-01-11 21:01:17 +0800 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-01-20 16:07:48 +0000 |
| commit | b7db7d9c4ffc04210fe631f73a81746d6e2ef24b (patch) | |
| tree | cd7301b663355c863112922f0230ebdd5c11db35 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | b516456e9f916070fde6aa50cad5680a689687e6 (diff) | |
backlight: aw99706: Fix build errors caused by wrong gpio header
The driver uses GPIO descriptor API (devm_gpiod_get,
gpiod_set_value_cansleep, GPIOD_OUT_LOW) but includes the legacy
<linux/gpio.h> header instead of <linux/gpio/consumer.h>.
When CONFIG_GPIOLIB is not set, <linux/gpio.h> does not include
<linux/gpio/consumer.h>, causing build errors:
error: implicit declaration of function 'gpiod_set_value_cansleep'
error: implicit declaration of function 'devm_gpiod_get'
error: 'GPIOD_OUT_LOW' undeclared
Fix by including the correct header <linux/gpio/consumer.h>.
Fixes: 147b38a5ad06 ("backlight: aw99706: Add support for Awinic AW99706 backlight")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512171631.uKXlYwqu-lkp@intel.com/
Signed-off-by: Junjie Cao <junjie.cao@intel.com>
Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Link: https://patch.msgid.link/20260111130117.5041-1-junjie.cao@intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
