diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-04-03 10:06:27 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-04-10 09:57:29 +0200 |
commit | 452d8950db3e839aba1bb13bc5378f4bac11fa04 (patch) | |
tree | 73f469994a43e329b3692947d0565d546876529a /drivers/clk/mediatek/clk-mt8186-wpe.c | |
parent | 4cece764965020c22cff7665b18a012006359095 (diff) |
power: rt9455: hide unused rt9455_boost_voltage_values
The rt9455_boost_voltage_values[] array is only used when USB PHY
support is enabled, causing a W=1 warning otherwise:
drivers/power/supply/rt9455_charger.c:200:18: error: 'rt9455_boost_voltage_values' defined but not used [-Werror=unused-const-variable=]
Enclose the definition in the same #ifdef as the references to it.
Fixes: e86d69dd786e ("power_supply: Add support for Richtek RT9455 battery charger")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240403080702.3509288-10-arnd@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/clk/mediatek/clk-mt8186-wpe.c')
0 files changed, 0 insertions, 0 deletions