Skip to content

Commit 4a58508

Browse files
krzkbroonie
authored andcommitted
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>
1 parent 70b26bb commit 4a58508

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/regulator/max20086-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static const struct i2c_device_id max20086_i2c_id[] = {
286286

287287
MODULE_DEVICE_TABLE(i2c, max20086_i2c_id);
288288

289-
static const struct of_device_id max20086_dt_ids[] = {
289+
static const struct of_device_id max20086_dt_ids[] __maybe_unused = {
290290
{
291291
.compatible = "maxim,max20086",
292292
.data = &(const struct max20086_chip_info) {

0 commit comments

Comments
 (0)