hwmon: Add missing inclusions of <linux/jiffies.h>
authorJean Delvare <khali@linux-fr.org>
Wed, 10 Oct 2012 13:25:56 +0000 (15:25 +0200)
committerJean Delvare <khali@endymion.delvare>
Wed, 10 Oct 2012 13:25:56 +0000 (15:25 +0200)
Many hwmon drivers use jiffies but omit the inclusion of the header
file. Fix that, and also fix one driver which was including the header
file but didn't need it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Luca Tettamanti <kronos.it@gmail.com>
Cc: Marc Hulsman <m.hulsman@tudelft.nl>
Cc: Rudolf Marek <r.marek@assembler.cz>
24 files changed:
drivers/hwmon/adm9240.c
drivers/hwmon/adt7475.c
drivers/hwmon/asus_atk0110.c
drivers/hwmon/emc1403.c
drivers/hwmon/hih6130.c
drivers/hwmon/i5k_amb.c
drivers/hwmon/ina2xx.c
drivers/hwmon/lineage-pem.c
drivers/hwmon/lm92.c
drivers/hwmon/lm93.c
drivers/hwmon/ltc4151.c
drivers/hwmon/ltc4215.c
drivers/hwmon/ltc4245.c
drivers/hwmon/ltc4261.c
drivers/hwmon/pmbus/pmbus_core.c
drivers/hwmon/sht21.c
drivers/hwmon/smm665.c
drivers/hwmon/thmc50.c
drivers/hwmon/tmp102.c
drivers/hwmon/w83791d.c
drivers/hwmon/w83792d.c
drivers/hwmon/w83793.c
drivers/hwmon/w83795.c
drivers/hwmon/w83l786ng.c

index 8b24d1a4a2b47ed67c58fab6781e274045d33aa3..dafa477715e327fcb324c86e51dba46e1afeb450 100644 (file)
@@ -50,6 +50,7 @@
 #include <linux/hwmon-vid.h>
 #include <linux/err.h>
 #include <linux/mutex.h>
+#include <linux/jiffies.h>
 
 /* Addresses to scan */
 static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, 0x2f,
index 861c756e95366ceb6a3fcc4e7a5dfa5b838feb9a..989e54c3925224a84bbf8bc55ac900a53fdf49ad 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/hwmon-sysfs.h>
 #include <linux/hwmon-vid.h>
 #include <linux/err.h>
+#include <linux/jiffies.h>
 
 /* Indexes for the sysfs hooks */
 
index cccb0e9d45b46562d090065e5e65d6d9e48c2811..c74b1d931854b02a950e5ec1e79065b472c9e5b7 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/dmi.h>
+#include <linux/jiffies.h>
 
 #include <acpi/acpi.h>
 #include <acpi/acpixf.h>
index 68ab94bde3f1d56c0acfbc4ab928ab8d08bf56eb..142e1cb8dea7e6ed641243588d525d6405d2124d 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/err.h>
 #include <linux/sysfs.h>
 #include <linux/mutex.h>
+#include <linux/jiffies.h>
 
 #define THERMAL_PID_REG                0xfd
 #define THERMAL_SMSC_ID_REG    0xfe
index e8ee75f554724390eaa3750e6b8259b02c8f35d4..9a675efaa78d65dd8e3ae8dde751b0fbf951f2ab 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/mutex.h>
 #include <linux/device.h>
 #include <linux/delay.h>
+#include <linux/jiffies.h>
 
 /**
  * struct hih6130 - HIH-6130 device specific data
index a18882cc073d34f0318afea85c65ed7b813a000c..da3fbab0c346871e8f514da2d4eb8398a9233396 100644 (file)
@@ -21,7 +21,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/jiffies.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
 #include <linux/err.h>
index 70717d4a5e8934e8d530fabf1d5833f8c8f3e817..2b726346f8faa976ddca5b22332cc4a31013e84c 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/i2c.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
+#include <linux/jiffies.h>
 
 #include <linux/platform_data/ina2xx.h>
 
index bd75d2415432dfefada86bff1471a9cc016cc032..41df29f59b0e5dd011f8258c228b14650a174f5f 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/i2c.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
+#include <linux/jiffies.h>
 
 /*
  * This driver supports various Lineage Compact Power Line DC/DC and AC/DC
index 2282d77e83e8ee117a6ffc4baeea24b8d3580498..71626f3c874239eba685e098f65d324707e6f946 100644 (file)
@@ -48,6 +48,7 @@
 #include <linux/hwmon-sysfs.h>
 #include <linux/err.h>
 #include <linux/mutex.h>
+#include <linux/jiffies.h>
 
 /*
  * The LM92 and MAX6635 have 2 two-state pins for address selection,
index c3d4255ed154f7b8d090b64d67aac5870022f5a3..1a003f73e4e4a8b96d4a87aa0dacecfb7ed15eff 100644 (file)
@@ -47,6 +47,7 @@
 #include <linux/hwmon-vid.h>
 #include <linux/err.h>
 #include <linux/delay.h>
+#include <linux/jiffies.h>
 
 /* LM93 REGISTER ADDRESSES */
 
index 8496baa08bc8349183e537e4f61e0d2db03c7cd4..4319a94f549d2bdd83541f3e0a293c1c419597c4 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/i2c.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
+#include <linux/jiffies.h>
 
 /* chip registers */
 #define LTC4151_SENSE_H        0x00
index 98b3d04f98b70bee2713914031c4173451f5517a..e8876108a6b3278a9e447912f3a3a5a9e1baf73a 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/i2c.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
+#include <linux/jiffies.h>
 
 /* Here are names of the chip's registers (a.k.a. commands) */
 enum ltc4215_cmd {
index 52075914eb0bb1adb7a225a9f500de3869b4a125..3653f79dc2de0870f4d642a8e556e525ed8bac95 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/i2c.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
+#include <linux/jiffies.h>
 #include <linux/i2c/ltc4245.h>
 
 /* Here are names of the chip's registers (a.k.a. commands) */
index 77476a575c4e6340b5987ff7a50e600c42c55b13..84a2d2872b20c4172a73a045ec1c1c6223dcd27e 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/i2c.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
+#include <linux/jiffies.h>
 
 /* chip registers */
 #define LTC4261_STATUS 0x00    /* readonly */
index 29b319db573efed8c8d5ec38fce66a36cb265ed8..94c92723b0ddb25ed75d315a93fd12fb1f1813a3 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
 #include <linux/delay.h>
+#include <linux/jiffies.h>
 #include <linux/i2c/pmbus.h>
 #include "pmbus.h"
 
index c2565d04cd4a104df117c32c65878d236f8522ec..5f67546950b1ebce2c4e59a92acded014445195a 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/device.h>
+#include <linux/jiffies.h>
 
 /* I2C command bytes */
 #define SHT21_TRIG_T_MEASUREMENT_HM  0xe3
index cbc51fb30dba12f0c217cd038386f21aa7be52ba..d9e1b7de78da7798b2a7103282ad4c7d176aaaaf 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
 #include <linux/delay.h>
+#include <linux/jiffies.h>
 
 /* Internal reference voltage (VREF, x 1000 */
 #define SMM665_VREF_ADC_X1000  1250
index 080c2637048093e5924d6cc7042e08056c538408..3c2c48d904e658736605ee95e5b21f08cd1ccf98 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/hwmon-sysfs.h>
 #include <linux/err.h>
 #include <linux/mutex.h>
+#include <linux/jiffies.h>
 
 MODULE_LICENSE("GPL");
 
index 4e1ff82c63e0063abbf8e07644842c7692f4a492..b8777e54190a4768033334813ac681cc8fed7e54 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/device.h>
+#include <linux/jiffies.h>
 
 #define        DRIVER_NAME "tmp102"
 
index 93ea81a4bf35758988ac7f817ee6dfae9978be05..39ab7bcc616e7a9e8733ce9bbbcc7e3cf6b0b970 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/hwmon-sysfs.h>
 #include <linux/err.h>
 #include <linux/mutex.h>
+#include <linux/jiffies.h>
 
 #define NUMBER_OF_VIN          10
 #define NUMBER_OF_FANIN                5
index 06d6f56d4f699eecbcb1aea81c7b719428b65853..053645279f381b453396053dfb71294346604717 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/sysfs.h>
+#include <linux/jiffies.h>
 
 /* Addresses to scan */
 static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, 0x2f,
index 4fc47e062071a2efa892bc0aff6903e4ef2d521d..99799fd1d917ce5a451f6a14cbf2c6da72f6a2e6 100644 (file)
@@ -46,6 +46,7 @@
 #include <linux/kref.h>
 #include <linux/notifier.h>
 #include <linux/reboot.h>
+#include <linux/jiffies.h>
 
 /* Default values */
 #define WATCHDOG_TIMEOUT 2     /* 2 minute default timeout */
index b813c646c7ca7b743ef039491d93440496e33244..2f01b7f543056f2b7063d04496f7ae344ceca495 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/err.h>
 #include <linux/mutex.h>
 #include <linux/delay.h>
+#include <linux/jiffies.h>
 
 /* Addresses to scan */
 static const unsigned short normal_i2c[] = {
index c99c8a0473cf13257d9abeb548aa548536d7c8d1..f0e8286c3c70ed7c1c2a57a73b19cc06fec8a193 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/hwmon-sysfs.h>
 #include <linux/err.h>
 #include <linux/mutex.h>
+#include <linux/jiffies.h>
 
 /* Addresses to scan */
 static const unsigned short normal_i2c[] = { 0x2e, 0x2f, I2C_CLIENT_END };