hwmon: (lm70) Use device_get_match_data()
authorStephen Boyd <swboyd@chromium.org>
Sat, 23 Jan 2021 03:44:27 +0000 (19:44 -0800)
committerRob Herring <robh@kernel.org>
Thu, 28 Jan 2021 21:46:08 +0000 (15:46 -0600)
commit6e09d75513d2670b7ab91ab3584fc5bcf2675a75
treecc90df3970f59d8af20b9e68c43f11bfdbe46985
parent9243eadc3a13c1332a80a8254e48865b09df5339
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>
drivers/hwmon/lm70.c