hwmon: (occ) Move common code to a separate module
authorJean Delvare <jdelvare@suse.de>
Wed, 10 Apr 2019 10:47:26 +0000 (12:47 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit5679ed99065372bc62c57a895950914e1c0fb9e0
treee8c0b72ee41ac739d07941fa18e535eb00d89a59
parent14b97ba5c20056102b3dd22696bf17b057e60976
hwmon: (occ) Move common code to a separate module

Instead of duplicating the common code into the 2 (binary) drivers,
move the common code to a separate module. This is cleaner.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Eddie James <eajames@linux.ibm.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Tested-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/Kconfig
drivers/hwmon/occ/Makefile
drivers/hwmon/occ/common.c
drivers/hwmon/occ/sysfs.c