hwmon: (dell-smm-hwmon) Use platform device
authorArmin Wolf <W_Armin@gmx.de>
Wed, 28 Jul 2021 22:15:52 +0000 (00:15 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 17 Aug 2021 21:54:25 +0000 (14:54 -0700)
commit1492fa21c0ba531e3ae4fc1b5cdaaf96603bf800
tree266280ee20445e4881156b922125c2eb4761636a
parent60b76c3a117ce076f60f58de17bae1122849746a
hwmon: (dell-smm-hwmon) Use platform device

Register a platform device for usage with
devm_hwmon_device_register_with_groups since
the platform device is necessary for future
changes.
Also fix some checkpatch warnings.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20210728221557.8891-2-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c