Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: rpi-panel-v2: Fix missing OF dependency

Add missing OF dependency and drop of_match_ptr() use.
This fixes the following LKP report:

"
>> drivers/regulator/rpi-panel-v2-regulator.c:95:34: warning: 'rpi_panel_v2_dt_ids' defined but not used [-Wunused-const-variable=]
static const struct of_device_id rpi_panel_v2_dt_ids[] = {
^~~~~~~~~~~~~~~~~~~
"

Fixes: d49305862fdc ("regulator: rpi-panel-v2: Add regulator for 7" Raspberry Pi 720x1280")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506100440.fyTGO7CG-lkp@intel.com/
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Link: https://patch.msgid.link/20250609223012.87764-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Marek Vasut and committed by
Mark Brown
a4eb71ff 55d9fd98

+2 -2
+1 -1
drivers/regulator/Kconfig
··· 1156 1156 config REGULATOR_RASPBERRYPI_TOUCHSCREEN_V2 1157 1157 tristate "Raspberry Pi 7-inch touchscreen panel V2 regulator" 1158 1158 depends on GPIOLIB 1159 - depends on I2C 1159 + depends on I2C && OF 1160 1160 select GPIO_REGMAP 1161 1161 select REGMAP_I2C 1162 1162 help
+1 -1
drivers/regulator/rpi-panel-v2-regulator.c
··· 102 102 .driver = { 103 103 .name = "rpi_touchscreen_v2", 104 104 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 105 - .of_match_table = of_match_ptr(rpi_panel_v2_dt_ids), 105 + .of_match_table = rpi_panel_v2_dt_ids, 106 106 }, 107 107 .probe = rpi_panel_v2_i2c_probe, 108 108 };