OSDN Git Service

hwmon: (asus-ec-sensors) merge setup functions
authorEugene Shalygin <eugene.shalygin@gmail.com>
Wed, 16 Feb 2022 19:19:58 +0000 (20:19 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:18 +0000 (17:03 -0800)
commit1298184b387fd71fe68ecb7dc2001cb63ffa17c5
treea87bb11dbad5b16ddb9109320735accb0ee53a0c
parent8aba9ca62677570abf8c6b62611adb85bf1580ca
hwmon: (asus-ec-sensors) merge setup functions

Merge configure_sensor_setup() into probe().

Changes:
 - v2: add local struct device *dev = &pdev->dev;
 - v3: initialize dev at declaration
 - v4: fix checkpatch warning
 - v5: fix formatting
 - v6: code style fixes
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/asus-ec-sensors.c