Skip to content

Commit e0248a2

Browse files
krzklag-linaro
authored andcommitted
leds: tlc591xx: Mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/leds/leds-tlc591xx.c:138:34: error: ‘of_tlc591xx_leds_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230311111717.252019-1-krzysztof.kozlowski@linaro.org
1 parent e91a4d5 commit e0248a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/leds/leds-tlc591xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static const struct regmap_config tlc591xx_regmap = {
135135
.max_register = 0x1e,
136136
};
137137

138-
static const struct of_device_id of_tlc591xx_leds_match[] = {
138+
static const struct of_device_id of_tlc591xx_leds_match[] __maybe_unused = {
139139
{ .compatible = "ti,tlc59116",
140140
.data = &tlc59116 },
141141
{ .compatible = "ti,tlc59108",

0 commit comments

Comments
 (0)