Skip to content

Commit c857b87

Browse files
krzklag-linaro
authored andcommitted
backlight: lp855x: Mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/video/backlight/lp855x_bl.c:551:34: error: ‘lp855x_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230311173556.263086-1-krzysztof.kozlowski@linaro.org
1 parent 541ec23 commit c857b87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/backlight/lp855x_bl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ static void lp855x_remove(struct i2c_client *cl)
548548
sysfs_remove_group(&lp->dev->kobj, &lp855x_attr_group);
549549
}
550550

551-
static const struct of_device_id lp855x_dt_ids[] = {
551+
static const struct of_device_id lp855x_dt_ids[] __maybe_unused = {
552552
{ .compatible = "ti,lp8550", },
553553
{ .compatible = "ti,lp8551", },
554554
{ .compatible = "ti,lp8552", },

0 commit comments

Comments
 (0)