Skip to contentSkip to conversation

add new hwmon core interface

RFC In review Lucas Stach 1 participant 1 message Jun 30, 2011 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

RFC 2/2 add new hwmon core interface

From d40386ba43913c0cf9e036a4d67be20080fa3767 Mon Sep 17 00:00:00 2001
From: Lucas Stach <[email protected]>
Date: Fri, 1 Jul 2011 01:09:16 +0200
Subject: [PATCH 2/2] hwmon: add hwmon-dummy driver to showcase new core
interface

Just a stupid driver to showcase the new core interface. *NOT FOR INCLUSION INTO ANYTHING*

---
 drivers/hwmon/Kconfig       |    5 +
 drivers/hwmon/Makefile      |    2 +
 drivers/hwmon/hwmon-dummy.c |  176 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 183 insertions(+), 0 deletions(-)
 create mode 100644 drivers/hwmon/hwmon-dummy.c
drivers/hwmon/Kconfig +5 -0
index 50e40db..9a30595 100644
@@ -39,6 +39,11 @@ config HWMON_DEBUG_CHIP
 
 comment "Native drivers"
 
+config SENSORS_DUMMY
+	tristate "Dummy driver for new hwmon core interface"
+	help
+	  Dummy driver to showcase the new hwmon core interface.
+
 config SENSORS_ABITUGURU
 	tristate "Abit uGuru (rev 1 & 2)"
 	depends on X86 && EXPERIMENTAL
drivers/hwmon/Makefile +2 -0
index 967d0ea..10f5624 100644
@@ -3,6 +3,7 @@
 #
 
 obj-$(CONFIG_HWMON)		+= hwmon.o
+obj-$(CONFIG_HWMON)		+= hwmon-core.o
 obj-$(CONFIG_HWMON_VID)		+= hwmon-vid.o
 
 # APCI drivers
@@ -44,6 +45,7 @@ obj-$(CONFIG_SENSORS_PKGTEMP)	+= pkgtemp.o
 obj-$(CONFIG_SENSORS_DME1737)	+= dme1737.o
 obj-$(CONFIG_SENSORS_DS620)	+= ds620.o
 obj-$(CONFIG_SENSORS_DS1621)	+= ds1621.o
+obj-$(CONFIG_SENSORS_DUMMY)	+= hwmon-dummy.o
 obj-$(CONFIG_SENSORS_EMC1403)	+= emc1403.o
 obj-$(CONFIG_SENSORS_EMC2103)	+= emc2103.o
 obj-$(CONFIG_SENSORS_F71805F)	+= f71805f.o
drivers/hwmon/hwmon-dummy.c new file +176 -0

176 lines not on this page · raw message

Signature · 8 lines
1.7.5.4



_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors