OSDN Git Service

regulator: max20086: Mark OF related data as maybe unused
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 10 Mar 2023 21:45:46 +0000 (22:45 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2023 14:08:58 +0000 (14:08 +0000)
commit4a5850865641d0b83caaad81ca0bbd722ac514fb
tree7a5a779e48f0596b165d1951e4e9aeb6f4d9ef49
parent70b26bb55f719e2900404459128d41c8425c8dde
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>
drivers/regulator/max20086-regulator.c