summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-03-12 20:37:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-22 13:33:52 +0100
commitfc331de5523fe935d1cf486832c189966850bb2f (patch)
treead6e107de33a451cc952b312474a5b3d9b63e971 /scripts
parent634b3304f78d3cdc724fb7811dc42f540d3d6442 (diff)
downloadlinux-fc331de5523fe935d1cf486832c189966850bb2f.tar.gz
hwmon: tmp512: drop of_match_ptr for ID table
[ Upstream commit 00d85e81796b17a29a0e096c5a4735daa47adef8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions