Skip to content

Commit 1eab6b6

Browse files
krzksre
authored andcommitted
power: supply: bq24257_charger: mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/power/supply/bq24257_charger.c:1143:34: error: ‘bq24257_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 3c904b0 commit 1eab6b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/bq24257_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ static const struct i2c_device_id bq24257_i2c_ids[] = {
11401140
};
11411141
MODULE_DEVICE_TABLE(i2c, bq24257_i2c_ids);
11421142

1143-
static const struct of_device_id bq24257_of_match[] = {
1143+
static const struct of_device_id bq24257_of_match[] __maybe_unused = {
11441144
{ .compatible = "ti,bq24250", },
11451145
{ .compatible = "ti,bq24251", },
11461146
{ .compatible = "ti,bq24257", },

0 commit comments

Comments
 (0)