hwmon: lm70: simplify with spi_get_device_match_data()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 6 Jun 2024 14:25:15 +0000 (16:25 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 8 Jun 2024 23:07:32 +0000 (16:07 -0700)
commitb1ea8f7a30a01d3e314cd889ac6bd9f41675d23f
treec87025d88822a4757daa2a6e04cc0aa3c002ff1b
parent6ce402327a6fb714a9f40a0bb59bcbfe383839a5
hwmon: lm70: simplify with spi_get_device_match_data()

Use spi_get_device_match_data() helper to simplify a bit the driver.
Also kernel_ulong_t type is preferred for kernel code over uintptr_t
(needed for the cast).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240606142515.132504-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm70.c