iio: proximity: sx9500: Reference ACPI and OF ID data
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Mar 2023 15:34:29 +0000 (16:34 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 12 Mar 2023 16:18:41 +0000 (16:18 +0000)
Always reference acpi_device_id and of_device_id tables, as they is
little benefit of conditional compiling and OF table could be used also
for ACPI matching via PRP0001.  This fixes warning:

  drivers/iio/proximity/sx9500.c:1039:34: error: ‘sx9500_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230312153429.371702-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/sx9500.c

index 8794e75e5bf9c45d96a674e3484449b76ebb3983..9b2cfcade6a49bf4f1f4d558d6f9d6e80ac6dc65 100644 (file)
@@ -1051,8 +1051,8 @@ MODULE_DEVICE_TABLE(i2c, sx9500_id);
 static struct i2c_driver sx9500_driver = {
        .driver = {
                .name   = SX9500_DRIVER_NAME,
-               .acpi_match_table = ACPI_PTR(sx9500_acpi_match),
-               .of_match_table = of_match_ptr(sx9500_of_match),
+               .acpi_match_table = sx9500_acpi_match,
+               .of_match_table = sx9500_of_match,
                .pm = pm_sleep_ptr(&sx9500_pm_ops),
        },
        .probe_new      = sx9500_probe,