diff options
author | Stephen Boyd <swboyd@chromium.org> | 2021-01-23 04:44:27 +0100 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2021-01-28 22:46:08 +0100 |
commit | 6e09d75513d2670b7ab91ab3584fc5bcf2675a75 (patch) | |
tree | cc90df3970f59d8af20b9e68c43f11bfdbe46985 /include | |
parent | usb: usb251xb: Use of_device_get_match_data() (diff) | |
download | linux-6e09d75513d2670b7ab91ab3584fc5bcf2675a75.tar.xz linux-6e09d75513d2670b7ab91ab3584fc5bcf2675a75.zip |
hwmon: (lm70) Use device_get_match_data()
Use the more modern API to get the match data out of the of match table.
This saves some code, lines, and nicely avoids referencing the match
table when it is undefined with configurations where CONFIG_OF=n.
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: <linux-hwmon@vger.kernel.org>
[robh: rework to use device_get_match_data()]
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions