power: rt9455: hide unused rt9455_boost_voltage_values
authorArnd Bergmann <arnd@arndb.de>
Wed, 3 Apr 2024 08:06:27 +0000 (10:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 09:50:46 +0000 (11:50 +0200)
commite2ebfee0833d83136c64f81627b74b5b95642325
treee9af8b7cfeaca1ce1ae212d4fd664fe08231734b
parentea6ce93327bd2c8a0c6cf6f2f0e800f3b778f021
power: rt9455: hide unused rt9455_boost_voltage_values

[ Upstream commit 452d8950db3e839aba1bb13bc5378f4bac11fa04 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/supply/rt9455_charger.c