]> git.ipfire.org Git - thirdparty/linux.git/commit
hwmon: (tmp102) Use device_property_read_string API
authorFlaviu Nistor <flaviu.nistor@gmail.com>
Sun, 10 May 2026 09:25:43 +0000 (12:25 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:22:59 +0000 (08:22 -0700)
commit624fce2eec59ab28fd05c235ee26d3cbf1cbef60
tree69cc84747c9cbb963f139313e923d24e70aa58cd
parente28d0c73d4d7adc9cd3747d81fdc7338217f9a0c
hwmon: (tmp102) Use device_property_read_string API

Replace of_property_read_string() with the preferded
device_property_read_string() in the probe function to
read the device label property, improving the driver
compatibility since this method is not limited to
Device Tree only.

Also drop the now unnecessary __maybe_unused from tmp102_of_match.

Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>
Link: https://lore.kernel.org/r/20260510092543.12352-1-flaviu.nistor@gmail.com
Link: https://lore.kernel.org/r/20260518122210.10288-1-flaviu.nistor@gmail.com
[groeck: Combined API change with __maybe_unused patch]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp102.c