summaryrefslogtreecommitdiff
path: root/include/linux/of_device.h
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2021-01-22 19:44:27 -0800
committerRob Herring <robh@kernel.org>2021-01-28 15:46:08 -0600
commit6e09d75513d2670b7ab91ab3584fc5bcf2675a75 (patch)
treecc90df3970f59d8af20b9e68c43f11bfdbe46985 /include/linux/of_device.h
parent9243eadc3a13c1332a80a8254e48865b09df5339 (diff)
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/linux/of_device.h')
0 files changed, 0 insertions, 0 deletions