power: supply: bq24257: skip 'struct acpi_device_id' when !CONFIG_ACPI
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 11 Sep 2020 16:27:23 +0000 (18:27 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 3 Oct 2020 20:17:50 +0000 (22:17 +0200)
commit7da9f17fc2b9a3493c6fd55e96521485035bc670
tree2149ec57bd7b0138e94a5d92061b26e26dab8280
parentee2d433cb47338cd40af800cdab5133f62edca10
power: supply: bq24257: skip 'struct acpi_device_id' when !CONFIG_ACPI

Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI, the
struct acpi_device_id becomes unused:

  drivers/power/supply/bq24257_charger.c:1155:36: warning:
    'bq24257_acpi_match' defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq24257_charger.c