From: Krzysztof Kozlowski Date: Sat, 11 Mar 2023 11:15:29 +0000 (+0100) Subject: power: supply: lp8727_charger: mark OF related data as maybe unused X-Git-Tag: v6.6.7~2940^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea66715d30ea5824290a2a4da2604d5e59fea372;p=platform%2Fkernel%2Flinux-starfive.git power: supply: lp8727_charger: mark OF related data as maybe unused The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/power/supply/lp8727_charger.c:601:34: error: ‘lp8727_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/lp8727_charger.c b/drivers/power/supply/lp8727_charger.c index e6c2137..dc42d35 100644 --- a/drivers/power/supply/lp8727_charger.c +++ b/drivers/power/supply/lp8727_charger.c @@ -598,7 +598,7 @@ static void lp8727_remove(struct i2c_client *cl) lp8727_unregister_psy(pchg); } -static const struct of_device_id lp8727_dt_ids[] = { +static const struct of_device_id lp8727_dt_ids[] __maybe_unused = { { .compatible = "ti,lp8727", }, { } };