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: max20086: Mark OF related data as maybe unused

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

drivers/regulator/max20086-regulator.c:289:34: error: ‘max20086_dt_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20230310214553.275450-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
4a585086 70b26bb5

+1 -1
+1 -1
drivers/regulator/max20086-regulator.c
··· 286 286 287 287 MODULE_DEVICE_TABLE(i2c, max20086_i2c_id); 288 288 289 - static const struct of_device_id max20086_dt_ids[] = { 289 + static const struct of_device_id max20086_dt_ids[] __maybe_unused = { 290 290 { 291 291 .compatible = "maxim,max20086", 292 292 .data = &(const struct max20086_chip_info) {