hwmon: (sch56xx-common) Simplify sch56xx_device_add
authorArmin Wolf <W_Armin@gmx.de>
Sat, 8 May 2021 13:14:57 +0000 (15:14 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 17 Jun 2021 11:21:44 +0000 (04:21 -0700)
commit5c1c78e0a0a2f37de0b05851878af8e02eeae02f
treea0962a64c1aa939d9cfaa1974fd3ea14dd07e3b1
parent989c9c675bbbf3264b42b05e8924a9930b500e6c
hwmon: (sch56xx-common) Simplify sch56xx_device_add

Use platform_device_register_simple() instead of
manually calling platform_device_alloc()/platform_device_add().

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20210508131457.12780-5-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sch56xx-common.c