Commit c3963bc0 authored by Zev Weiss's avatar Zev Weiss Committed by Guenter Roeck
Browse files

hwmon: (nct6775) Split core and platform driver



This splits the nct6775 driver into an interface-independent core and
a separate platform driver that wraps inb/outb port I/O (or asuswmi
methods) around that core.

Signed-off-by: default avatarZev Weiss <zev@bewilderbeest.net>
Tested-by: default avatarRenze Nicolai <renze@rnplus.nl>
Link: https://lore.kernel.org/r/20220427010154.29749-7-zev@bewilderbeest.net


Tested-by: default avatarOleksandr Natalenko <oleksandr@natalenko.name>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent ae0d7227
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -13537,12 +13537,14 @@ M: Samuel Mendoza-Jonas <sam@mendozajonas.com>
S:	Maintained
F:	net/ncsi/
NCT6775 HARDWARE MONITOR DRIVER
NCT6775 HARDWARE MONITOR DRIVER - CORE & PLATFORM DRIVER
M:	Guenter Roeck <linux@roeck-us.net>
L:	linux-hwmon@vger.kernel.org
S:	Maintained
F:	Documentation/hwmon/nct6775.rst
F:	drivers/hwmon/nct6775.c
F:	drivers/hwmon/nct6775-core.c
F:	drivers/hwmon/nct6775-platform.c
F:	drivers/hwmon/nct6775.h
NETDEVSIM
M:	Jakub Kicinski <kuba@kernel.org>
+13 −1
Original line number Diff line number Diff line
@@ -1462,11 +1462,23 @@ config SENSORS_NCT6683
	  This driver can also be built as a module. If so, the module
	  will be called nct6683.

config SENSORS_NCT6775_CORE
	tristate
	select REGMAP
	help
	  This module contains common code shared by the platform and
	  i2c versions of the nct6775 driver; it is not useful on its
	  own.

	  If built as a module, the module will be called
	  nct6775-core.

config SENSORS_NCT6775
	tristate "Nuvoton NCT6775F and compatibles"
	tristate "Platform driver for Nuvoton NCT6775F and compatibles"
	depends on !PPC
	depends on ACPI_WMI || ACPI_WMI=n
	select HWMON_VID
	select SENSORS_NCT6775_CORE
	help
	  If you say yes here you get support for the hardware monitoring
	  functionality of the Nuvoton NCT6106D, NCT6775F, NCT6776F, NCT6779D,
+2 −0
Original line number Diff line number Diff line
@@ -154,6 +154,8 @@ obj-$(CONFIG_SENSORS_MLXREG_FAN) += mlxreg-fan.o
obj-$(CONFIG_SENSORS_MENF21BMC_HWMON) += menf21bmc_hwmon.o
obj-$(CONFIG_SENSORS_MR75203)	+= mr75203.o
obj-$(CONFIG_SENSORS_NCT6683)	+= nct6683.o
obj-$(CONFIG_SENSORS_NCT6775_CORE) += nct6775-core.o
nct6775-objs			:= nct6775-platform.o
obj-$(CONFIG_SENSORS_NCT6775)	+= nct6775.o
obj-$(CONFIG_SENSORS_NCT7802)	+= nct7802.o
obj-$(CONFIG_SENSORS_NCT7904)	+= nct7904.o
+29 −1430

File changed and moved.

Preview size limit exceeded, changes collapsed.

+1226 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading