iio: light: max44009: add missing OF device matching
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Mar 2023 15:34:28 +0000 (16:34 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 12 Mar 2023 16:17:43 +0000 (16:17 +0000)
commitb29c49026c3c05a11f845dba17cad0b3ba06836d
treec9e7332124bdcf5d52a47a5cea0179ddc67fd4fa
parent2e467c4edc7b08c3e4ad37c5d69a372f3bc59fad
iio: light: max44009: add missing OF device matching

The driver currently matches only via i2c_device_id, but also has
of_device_id table:

  drivers/iio/light/max44009.c:545:34: error: ‘max44009_of_match’ defined but not used [-Werror=unused-const-variable=]

Fixes: 6aef699a7d7e ("iio: light: add driver for MAX44009")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230312153429.371702-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/max44009.c