Skip to contentSkip to conversation

hwmon: include <linux/io.h> instead of <asm/io.h>

PATCH Applied H Hartley Sweeten 3 participants 5 messages Aug 13, 2009 – Sep 4, 2009

Subsystems (13)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: include <linux/io.h> instead of <asm/io.h>

Drivers should be including <linux/io.h> instead of <asm/io.h>.

Cc Alistair John Strachan <[email protected]>
Cc Nicolas Boichat <[email protected]>
Cc Juerg Haefliger <[email protected]>
Cc Jean Delvare <[email protected]>
Cc Frank Seidel <[email protected]>
Cc Jim Cromie <[email protected]>
Cc "Mark M. Hoffman" <[email protected]>
Cc Roger Lucas <[email protected]>

---

drivers/hwmon/abituguru.c +1 -1
index 4dbdb81..03694cc 100644
@@ -32,7 +32,7 @@
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
 #include <linux/dmi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 /* Banks */
 #define ABIT_UGURU_ALARM_BANK			0x20 /* 1x 3 bytes */
drivers/hwmon/abituguru3.c +1 -1
index 7d3f15d..ad6f8b7 100644
@@ -34,7 +34,7 @@
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
 #include <linux/dmi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 /* uGuru3 bank addresses */
 #define ABIT_UGURU3_SETTINGS_BANK		0x01
drivers/hwmon/applesmc.c +1 -1
index 678e34b..753b348 100644
@@ -35,7 +35,7 @@
 #include <linux/dmi.h>
 #include <linux/mutex.h>
 #include <linux/hwmon-sysfs.h>
-#include <asm/io.h>
+#include <linux/io.h>
 #include <linux/leds.h>
 #include <linux/hwmon.h>
 #include <linux/workqueue.h>
drivers/hwmon/dme1737.c +1 -1
index 3df202a..9814d51 100644
@@ -35,7 +35,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 /* ISA device, if found */
 static struct platform_device *pdev;
drivers/hwmon/f71805f.c +1 -1
index 8998765..525a00b 100644
@@ -40,7 +40,7 @@
 #include <linux/sysfs.h>
 #include <linux/ioport.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 static unsigned short force_id;
 module_param(force_id, ushort, 0);
drivers/hwmon/hdaps.c +1 -2
index d3612a1..be2d131 100644
@@ -35,8 +35,7 @@
 #include <linux/timer.h>
 #include <linux/dmi.h>
 #include <linux/jiffies.h>
-
-#include <asm/io.h>
+#include <linux/io.h>
 
 #define HDAPS_LOW_PORT		0x1600	/* first port used by hdaps */
 #define HDAPS_NR_PORTS		0x30	/* number of ports: 0x1600 - 0x162f */
drivers/hwmon/it87.c +1 -1
index 9157247..ffeb2a1 100644
@@ -50,7 +50,7 @@
 #include <linux/string.h>
 #include <linux/dmi.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 #define DRVNAME "it87"
 
drivers/hwmon/lm78.c +1 -1
index a1787fd..f7e7016 100644
@@ -31,7 +31,7 @@
 #include <linux/hwmon-sysfs.h>
 #include <linux/err.h>
 #include <linux/mutex.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 /* ISA device, if found */
 static struct platform_device *pdev;
drivers/hwmon/pc87360.c +1 -1
index fb052fe..4a64b85 100644
@@ -44,7 +44,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 static u8 devid;
 static struct platform_device *pdev;
drivers/hwmon/pc87427.c +1 -1
index 3a8a0f7..4e0de0e 100644
@@ -33,7 +33,7 @@
 #include <linux/sysfs.h>
 #include <linux/ioport.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 static unsigned short force_id;
 module_param(force_id, ushort, 0);
drivers/hwmon/sis5595.c +1 -1
index aa2e831..12f2e70 100644
@@ -63,7 +63,7 @@
 #include <linux/mutex.h>
 #include <linux/sysfs.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 
 /* If force_addr is set to anything different from 0, we forcibly enable
drivers/hwmon/smsc47b397.c +1 -1
index 6f6d52b..f46d936 100644
@@ -37,7 +37,7 @@
 #include <linux/init.h>
 #include <linux/mutex.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 static unsigned short force_id;
 module_param(force_id, ushort, 0);
drivers/hwmon/smsc47m1.c +1 -1
index ba75bfc..8ad50fd 100644
@@ -38,7 +38,7 @@
 #include <linux/mutex.h>
 #include <linux/sysfs.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 static unsigned short force_id;
 module_param(force_id, ushort, 0);
drivers/hwmon/via686a.c +1 -1
index a022aed..39e82a4 100644
@@ -42,7 +42,7 @@
 #include <linux/mutex.h>
 #include <linux/sysfs.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 
 /* If force_addr is set to anything different from 0, we forcibly enable
drivers/hwmon/vt1211.c +1 -1
index 73f77a9..120b5d6 100644
@@ -33,7 +33,7 @@
 #include <linux/mutex.h>
 #include <linux/ioport.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 static int uch_config = -1;
 module_param(uch_config, int, 0);
drivers/hwmon/vt8231.c +1 -1
index 9982b45..470a122 100644
@@ -36,7 +36,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 static int force_addr;
 module_param(force_addr, int, 0);
drivers/hwmon/w83627ehf.c +1 -1
index 0e97469..bb5e787 100644
@@ -51,7 +51,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 #include "lm75.h"
 
 enum kinds { w83627ehf, w83627dhg, w83627dhg_p, w83667hg };
drivers/hwmon/w83627hf.c +1 -1
index 389150b..2be28ac 100644
@@ -51,7 +51,7 @@
 #include <linux/mutex.h>
 #include <linux/ioport.h>
 #include <linux/acpi.h>
-#include <asm/io.h>
+#include <linux/io.h>
 #include "lm75.h"
 
 static struct platform_device *pdev;
drivers/hwmon/w83781d.c +1 -1
index 0bdab95..d27ed1b 100644
@@ -48,7 +48,7 @@
 #ifdef CONFIG_ISA
 #include <linux/platform_device.h>
 #include <linux/ioport.h>
-#include <asm/io.h>
+#include <linux/io.h>
 #endif
 
 #include "lm75.h" 

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

Applied
#1 lore raw
Quoted 11 lines · H Hartley Sweeten

Drivers should be including <linux/io.h> instead of <asm/io.h>.

Cc Alistair John Strachan <[email protected]>
Cc Nicolas Boichat <[email protected]>
Cc Juerg Haefliger <[email protected]>
Cc Jean Delvare <[email protected]>
Cc Frank Seidel <[email protected]>
Cc Jim Cromie <[email protected]>
Cc "Mark M. Hoffman" <[email protected]>
Cc Roger Lucas <[email protected]>

Applied, thanks.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
maintainer
#2 lore raw

Re: [lm-sensors] [PATCH] hwmon: include <linux/io.h> instead of

In reply to H Hartley Sweeten
Quoted 13 lines · Jean Delvare
Quoted 11 lines · H Hartley Sweeten

Drivers should be including <linux/io.h> instead of <asm/io.h>.

Cc Alistair John Strachan <[email protected]>
Cc Nicolas Boichat <[email protected]>
Cc Juerg Haefliger <[email protected]>
Cc Jean Delvare <[email protected]>
Cc Frank Seidel <[email protected]>
Cc Jim Cromie <[email protected]>
Cc "Mark M. Hoffman" <[email protected]>
Cc Roger Lucas <[email protected]>
Quoted 3 lines

Applied, thanks.

Hi Jean, etal

wheres the tree ?
I checked at git.kernel.org, didnt find /hwmon/

I found this googling, it looks old. (july last year iirc)
http://lm-sensors.org/kernel?p=kernel/mhoffman/hwmon-2.6.git;a=summary

Also, wrt ack, I withheld it, cuz I hadnt gotten around to looking for it in a single tree (or to see whether it was already)

Since I never compiled it, ack'g seemed a bit overstating what a glance told me; that it looked sensible, and based on other work.

What would you have liked to hear from me in this case ?

tia
jimc

Quoted 3 lines

--
Jean Delvare

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

#3 lore raw

Re: [lm-sensors] [PATCH] hwmon: include <linux/io.h> instead of

In reply to H Hartley Sweeten

Hi Jim,

Quoted 15 lines · Jim Cromie
Quoted 13 lines · Jean Delvare
Quoted 11 lines · H Hartley Sweeten

Drivers should be including <linux/io.h> instead of <asm/io.h>.

Cc Alistair John Strachan <[email protected]>
Cc Nicolas Boichat <[email protected]>
Cc Juerg Haefliger <[email protected]>
Cc Jean Delvare <[email protected]>
Cc Frank Seidel <[email protected]>
Cc Jim Cromie <[email protected]>
Cc "Mark M. Hoffman" <[email protected]>
Cc Roger Lucas <[email protected]>
Quoted 7 lines
Quoted 1 line

Applied, thanks.

wheres the tree ?
I checked at git.kernel.org, didnt find /hwmon/

I found this googling, it looks old. (july last year iirc)
http://lm-sensors.org/kernel?p=kernel/mhoffman/hwmon-2.6.git;a=summary

In my private, unofficial hwmon tree:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-hwmon/

Quoted 7 lines

Also, wrt ack, I withheld it, cuz I hadnt gotten around to looking for it in a single tree (or to see whether it was already)

Since I never compiled it, ack'g seemed a bit overstating what a glance told me; that it looked sensible, and based on other work.

What would you have liked to hear from me in this case ?

Just your Acked-by, meaning you have no objection to the change. Obviously Hartley and myself already test-built the code.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
maintainer Acked-by on v1 1/1
#4 lore raw

Re: [lm-sensors] [PATCH] hwmon: include <linux/io.h> instead of

In reply to H Hartley Sweeten
Quoted 10 lines · Jean Delvare

Hi Jim,

Quoted 4 lines

Since I never compiled it, ack'g seemed a bit overstating what a glance told me; that it looked sensible, and based on other work.

What would you have liked to hear from me in this case ?

Just your Acked-by, meaning you have no objection to the change. Obviously Hartley and myself already test-built the code.

ok, consider it (belatedly)

thanks.

Quoted 3 lines

--
Jean Delvare

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