Skip to content

Commit ea66715

Browse files
krzksre
authored andcommitted
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 <krzysztof.kozlowski@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 9e2480d commit ea66715

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/lp8727_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ static void lp8727_remove(struct i2c_client *cl)
598598
lp8727_unregister_psy(pchg);
599599
}
600600

601-
static const struct of_device_id lp8727_dt_ids[] = {
601+
static const struct of_device_id lp8727_dt_ids[] __maybe_unused = {
602602
{ .compatible = "ti,lp8727", },
603603
{ }
604604
};

0 commit comments

Comments
 (0)