aboutsummaryrefslogtreecommitdiff
path: root/drivers/leds/leds-tlc591xx.c
diff options
context:
space:
mode:
authorGravatar Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 2023-03-11 12:17:17 +0100
committerGravatar Lee Jones <lee@kernel.org> 2023-03-16 15:08:43 +0000
commite0248a258c7f5f7b0a3f2283f5cd2e472dfb7eeb (patch)
tree08f5526e85ed61ac79b575ac5938cde2843e1d82 /drivers/leds/leds-tlc591xx.c
parentdt-bindings: leds: Document commonly used LED triggers (diff)
downloadlinux-e0248a258c7f5f7b0a3f2283f5cd2e472dfb7eeb.tar.gz
linux-e0248a258c7f5f7b0a3f2283f5cd2e472dfb7eeb.tar.bz2
linux-e0248a258c7f5f7b0a3f2283f5cd2e472dfb7eeb.zip
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
Diffstat (limited to 'drivers/leds/leds-tlc591xx.c')
-rw-r--r--drivers/leds/leds-tlc591xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-tlc591xx.c b/drivers/leds/leds-tlc591xx.c
index ec25e0c16bea..7e31db50036f 100644
--- a/drivers/leds/leds-tlc591xx.c
+++ b/drivers/leds/leds-tlc591xx.c
@@ -135,7 +135,7 @@ static const struct regmap_config tlc591xx_regmap = {
.max_register = 0x1e,
};
-static const struct of_device_id of_tlc591xx_leds_match[] = {
+static const struct of_device_id of_tlc591xx_leds_match[] __maybe_unused = {
{ .compatible = "ti,tlc59116",
.data = &tlc59116 },
{ .compatible = "ti,tlc59108",