summaryrefslogtreecommitdiff
path: root/drivers/hwmon/occ/Makefile
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2019-04-10 12:47:26 +0200
committerGuenter Roeck <linux@roeck-us.net>2019-04-15 17:19:53 -0700
commit5679ed99065372bc62c57a895950914e1c0fb9e0 (patch)
treee8c0b72ee41ac739d07941fa18e535eb00d89a59 /drivers/hwmon/occ/Makefile
parent14b97ba5c20056102b3dd22696bf17b057e60976 (diff)
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>
Diffstat (limited to 'drivers/hwmon/occ/Makefile')
-rw-r--r--drivers/hwmon/occ/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/hwmon/occ/Makefile b/drivers/hwmon/occ/Makefile
index 3fec12ddc7e7..493588d5a9d3 100644
--- a/drivers/hwmon/occ/Makefile
+++ b/drivers/hwmon/occ/Makefile
@@ -1,5 +1,7 @@
-occ-p8-hwmon-objs := common.o sysfs.o p8_i2c.o
-occ-p9-hwmon-objs := common.o sysfs.o p9_sbe.o
+occ-hwmon-common-objs := common.o sysfs.o
+occ-p8-hwmon-objs := p8_i2c.o
+occ-p9-hwmon-objs := p9_sbe.o
+obj-$(CONFIG_SENSORS_OCC) += occ-hwmon-common.o
obj-$(CONFIG_SENSORS_OCC_P8_I2C) += occ-p8-hwmon.o
obj-$(CONFIG_SENSORS_OCC_P9_SBE) += occ-p9-hwmon.o