Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

regulator: lp872x: Mark OF related data as maybe unused

The driver can be compile tested with !CONFIG_OF making certain data
unused:

drivers/regulator/lp872x.c:931:34: error: ‘lp872x_dt_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230310214553.275450-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
70b26bb5 b9d0bb8f

+1 -1
+1 -1
drivers/regulator/lp872x.c
··· 927 927 return lp872x_regulator_register(lp); 928 928 } 929 929 930 - static const struct of_device_id lp872x_dt_ids[] = { 930 + static const struct of_device_id lp872x_dt_ids[] __maybe_unused = { 931 931 { .compatible = "ti,lp8720", }, 932 932 { .compatible = "ti,lp8725", }, 933 933 { }