summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-03-12 20:37:23 +0100
committerGuenter Roeck <linux@roeck-us.net>2023-03-12 14:14:16 -0700
commit00d85e81796b17a29a0e096c5a4735daa47adef8 (patch)
tree30ff4b1bbd8ad0c6d1c859a685f70fadc7014d60 /drivers
parent8d655e65237643c48ada2c131b83679bf1105373 (diff)
downloadlinux-stable-00d85e81796b17a29a0e096c5a4735daa47adef8.tar.gz
linux-stable-00d85e81796b17a29a0e096c5a4735daa47adef8.tar.bz2
linux-stable-00d85e81796b17a29a0e096c5a4735daa47adef8.zip
hwmon: tmp512: drop of_match_ptr for ID table
The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). This also fixes !CONFIG_OF error: drivers/hwmon/tmp513.c:610:34: error: ‘tmp51x_of_match’ defined but not used [-Werror=unused-const-variable=] Fixes: 59dfa75e5d82 ("hwmon: Add driver for Texas Instruments TMP512/513 sensor chips.") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230312193723.478032-2-krzysztof.kozlowski@linaro.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/tmp513.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/tmp513.c b/drivers/hwmon/tmp513.c
index 47bbe47e062f..7d5f7441aceb 100644
--- a/drivers/hwmon/tmp513.c
+++ b/drivers/hwmon/tmp513.c
@@ -758,7 +758,7 @@ static int tmp51x_probe(struct i2c_client *client)
static struct i2c_driver tmp51x_driver = {
.driver = {
.name = "tmp51x",
- .of_match_table = of_match_ptr(tmp51x_of_match),
+ .of_match_table = tmp51x_of_match,
},
.probe_new = tmp51x_probe,
.id_table = tmp51x_id,