OSDN Git Service

hwmon: Reduce indentation level in __hwmon_device_register()
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 4 May 2020 14:57:44 +0000 (23:57 +0900)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 22 May 2020 13:28:38 +0000 (06:28 -0700)
commit44e3ad882bb268563766c45cd842a229dd3a4902
tree3555c947bdeb9cf4de275c27da6b84b633fae52c
parent5a56a39be7ffb416dd5ec5e1489d5a3a8b6a63f2
hwmon: Reduce indentation level in __hwmon_device_register()

Reduce indentation level in __hwmon_device_register() by preparing a
helper function.

This just improves code readability.  No functional change.

Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c