Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging

Pull hwmon updates from Jean Delvare:
 "Only trivial things this time"

* 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
  hwmon: Drop needless includes of <linux/delay.h>
  hwmon: Add missing inclusions of <linux/err.h>
  hwmon: Add missing inclusions of <linux/jiffies.h>
  hwmon: Fix spelling of Celsius
  hwmon: Update Alexey Fisher's name
This commit is contained in:
Linus Torvalds 2012-10-11 08:49:18 +09:00
Родитель df632d3ce7 0657777fce
Коммит e626d177fc
41 изменённых файлов: 35 добавлений и 17 удалений

Просмотреть файл

@ -56,6 +56,6 @@ The junction temperature is calculated:
The junction temperature attribute is supported by the driver. The junction temperature attribute is supported by the driver.
The battery temperature is calculated: The battery temperature is calculated:
Degree Celcius = 1 / (t1 + 1/298)- 273 Degree Celsius = 1 / (t1 + 1/298)- 273
where t1 = (1/B)* ln(( ADCval * 2.5)/(R25*ITBAT*255)) where t1 = (1/B)* ln(( ADCval * 2.5)/(R25*ITBAT*255))
Default values of R25, B, ITBAT are 10e3, 3380 and 50e-6 respectively. Default values of R25, B, ITBAT are 10e3, 3380 and 50e-6 respectively.

Просмотреть файл

@ -9,7 +9,7 @@ Supported chips:
http://pdfserv.maxim-ic.com/en/ds/MAX1619.pdf http://pdfserv.maxim-ic.com/en/ds/MAX1619.pdf
Authors: Authors:
Alexey Fisher <fishor@mail.ru>, Oleksij Rempel <bug-track@fisher-privat.net>,
Jean Delvare <khali@linux-fr.org> Jean Delvare <khali@linux-fr.org>
Description Description

Просмотреть файл

@ -41,5 +41,5 @@ Channel Signal
The Sysfs nodes will represent the voltage in the units of mV, The Sysfs nodes will represent the voltage in the units of mV,
the temperature channel shows the converted temperature in the temperature channel shows the converted temperature in
degree celcius. The Battery charging current channel represents degree Celsius. The Battery charging current channel represents
battery charging current in mA. battery charging current in mA.

Просмотреть файл

@ -29,6 +29,7 @@
#include <linux/kdev_t.h> #include <linux/kdev_t.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/err.h>
#include <acpi/acpi_drivers.h> #include <acpi/acpi_drivers.h>
#include <acpi/acpi_bus.h> #include <acpi/acpi_bus.h>

Просмотреть файл

@ -50,6 +50,7 @@
#include <linux/hwmon-vid.h> #include <linux/hwmon-vid.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/jiffies.h>
/* Addresses to scan */ /* Addresses to scan */
static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, 0x2f, static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, 0x2f,

Просмотреть файл

@ -15,7 +15,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/delay.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/i2c.h> #include <linux/i2c.h>

Просмотреть файл

@ -26,7 +26,6 @@
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/delay.h>
#include <linux/log2.h> #include <linux/log2.h>
#include <linux/slab.h> #include <linux/slab.h>

Просмотреть файл

@ -20,6 +20,7 @@
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/hwmon-vid.h> #include <linux/hwmon-vid.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/jiffies.h>
/* Indexes for the sysfs hooks */ /* Indexes for the sysfs hooks */

Просмотреть файл

@ -43,6 +43,7 @@
#include <linux/leds.h> #include <linux/leds.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/err.h>
/* data port used by Apple SMC */ /* data port used by Apple SMC */
#define APPLESMC_DATA_PORT 0x300 #define APPLESMC_DATA_PORT 0x300

Просмотреть файл

@ -14,6 +14,8 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/dmi.h> #include <linux/dmi.h>
#include <linux/jiffies.h>
#include <linux/err.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpixf.h> #include <acpi/acpixf.h>

Просмотреть файл

@ -12,7 +12,6 @@
* *
*/ */
#include <linux/delay.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>

Просмотреть файл

@ -33,6 +33,7 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/sysfs.h> #include <linux/sysfs.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/jiffies.h>
#define THERMAL_PID_REG 0xfd #define THERMAL_PID_REG 0xfd
#define THERMAL_SMSC_ID_REG 0xfe #define THERMAL_SMSC_ID_REG 0xfe

Просмотреть файл

@ -18,7 +18,6 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/delay.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>

Просмотреть файл

@ -33,6 +33,7 @@
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/jiffies.h>
/** /**
* struct hih6130 - HIH-6130 device specific data * struct hih6130 - HIH-6130 device specific data

Просмотреть файл

@ -21,12 +21,10 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/jiffies.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/delay.h>
#include <linux/log2.h> #include <linux/log2.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>

Просмотреть файл

@ -36,6 +36,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/math64.h> #include <linux/math64.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/err.h>
#define REFRESH_INTERVAL (HZ) #define REFRESH_INTERVAL (HZ)
#define IPMI_TIMEOUT (30 * HZ) #define IPMI_TIMEOUT (30 * HZ)

Просмотреть файл

@ -26,6 +26,7 @@
#include <linux/jiffies.h> #include <linux/jiffies.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/err.h>
#define REFRESH_INTERVAL (2 * HZ) #define REFRESH_INTERVAL (2 * HZ)
#define DRVNAME "ibmpex" #define DRVNAME "ibmpex"

Просмотреть файл

@ -33,6 +33,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
#include <linux/platform_data/ina2xx.h> #include <linux/platform_data/ina2xx.h>

Просмотреть файл

@ -22,7 +22,6 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/delay.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>

Просмотреть файл

@ -29,6 +29,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
/* /*
* This driver supports various Lineage Compact Power Line DC/DC and AC/DC * This driver supports various Lineage Compact Power Line DC/DC and AC/DC

Просмотреть файл

@ -48,6 +48,7 @@
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/jiffies.h>
/* /*
* The LM92 and MAX6635 have 2 two-state pins for address selection, * The LM92 and MAX6635 have 2 two-state pins for address selection,

Просмотреть файл

@ -47,6 +47,7 @@
#include <linux/hwmon-vid.h> #include <linux/hwmon-vid.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/jiffies.h>
/* LM93 REGISTER ADDRESSES */ /* LM93 REGISTER ADDRESSES */

Просмотреть файл

@ -36,6 +36,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
/* chip registers */ /* chip registers */
#define LTC4151_SENSE_H 0x00 #define LTC4151_SENSE_H 0x00

Просмотреть файл

@ -19,6 +19,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
/* Here are names of the chip's registers (a.k.a. commands) */ /* Here are names of the chip's registers (a.k.a. commands) */
enum ltc4215_cmd { enum ltc4215_cmd {

Просмотреть файл

@ -21,6 +21,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
#include <linux/i2c/ltc4245.h> #include <linux/i2c/ltc4245.h>
/* Here are names of the chip's registers (a.k.a. commands) */ /* Here are names of the chip's registers (a.k.a. commands) */

Просмотреть файл

@ -33,6 +33,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
/* chip registers */ /* chip registers */
#define LTC4261_STATUS 0x00 /* readonly */ #define LTC4261_STATUS 0x00 /* readonly */

Просмотреть файл

@ -22,7 +22,6 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/delay.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>
enum chips { max16065, max16066, max16067, max16068, max16070, max16071 }; enum chips { max16065, max16066, max16067, max16068, max16070, max16071 };

Просмотреть файл

@ -1,7 +1,7 @@
/* /*
* max1619.c - Part of lm_sensors, Linux kernel modules for hardware * max1619.c - Part of lm_sensors, Linux kernel modules for hardware
* monitoring * monitoring
* Copyright (C) 2003-2004 Alexey Fisher <fishor@mail.ru> * Copyright (C) 2003-2004 Oleksij Rempel <bug-track@fisher-privat.net>
* Jean Delvare <khali@linux-fr.org> * Jean Delvare <khali@linux-fr.org>
* *
* Based on the lm90 driver. The MAX1619 is a sensor chip made by Maxim. * Based on the lm90 driver. The MAX1619 is a sensor chip made by Maxim.
@ -357,7 +357,7 @@ static struct max1619_data *max1619_update_device(struct device *dev)
module_i2c_driver(max1619_driver); module_i2c_driver(max1619_driver);
MODULE_AUTHOR("Alexey Fisher <fishor@mail.ru> and " MODULE_AUTHOR("Oleksij Rempel <bug-track@fisher-privat.net> and "
"Jean Delvare <khali@linux-fr.org>"); "Jean Delvare <khali@linux-fr.org>");
MODULE_DESCRIPTION("MAX1619 sensor driver"); MODULE_DESCRIPTION("MAX1619 sensor driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");

Просмотреть файл

@ -7,7 +7,7 @@
* Derived from: * Derived from:
* *
* Based on the max1619 driver. * Based on the max1619 driver.
* Copyright (C) 2003-2004 Alexey Fisher <fishor@mail.ru> * Copyright (C) 2003-2004 Oleksij Rempel <bug-track@fisher-privat.net>
* Jean Delvare <khali@linux-fr.org> * Jean Delvare <khali@linux-fr.org>
* *
* The MAX6642 is a sensor chip made by Maxim. * The MAX6642 is a sensor chip made by Maxim.

Просмотреть файл

@ -26,7 +26,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/delay.h> #include <linux/jiffies.h>
#include <linux/i2c/pmbus.h> #include <linux/i2c/pmbus.h>
#include "pmbus.h" #include "pmbus.h"

Просмотреть файл

@ -22,7 +22,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/delay.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/err.h> #include <linux/err.h>

Просмотреть файл

@ -29,6 +29,7 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/jiffies.h>
/* I2C command bytes */ /* I2C command bytes */
#define SHT21_TRIG_T_MEASUREMENT_HM 0xe3 #define SHT21_TRIG_T_MEASUREMENT_HM 0xe3

Просмотреть файл

@ -24,6 +24,7 @@
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/jiffies.h>
/* Internal reference voltage (VREF, x 1000 */ /* Internal reference voltage (VREF, x 1000 */
#define SMM665_VREF_ADC_X1000 1250 #define SMM665_VREF_ADC_X1000 1250

Просмотреть файл

@ -28,6 +28,7 @@
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/jiffies.h>
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");

Просмотреть файл

@ -26,6 +26,7 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/jiffies.h>
#define DRIVER_NAME "tmp102" #define DRIVER_NAME "tmp102"

Просмотреть файл

@ -12,6 +12,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#define DRV_MODULE_VERSION "0.1" #define DRV_MODULE_VERSION "0.1"

Просмотреть файл

@ -41,6 +41,7 @@
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/jiffies.h>
#define NUMBER_OF_VIN 10 #define NUMBER_OF_VIN 10
#define NUMBER_OF_FANIN 5 #define NUMBER_OF_FANIN 5

Просмотреть файл

@ -44,6 +44,7 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/sysfs.h> #include <linux/sysfs.h>
#include <linux/jiffies.h>
/* Addresses to scan */ /* Addresses to scan */
static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, 0x2f, static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, 0x2f,

Просмотреть файл

@ -46,6 +46,7 @@
#include <linux/kref.h> #include <linux/kref.h>
#include <linux/notifier.h> #include <linux/notifier.h>
#include <linux/reboot.h> #include <linux/reboot.h>
#include <linux/jiffies.h>
/* Default values */ /* Default values */
#define WATCHDOG_TIMEOUT 2 /* 2 minute default timeout */ #define WATCHDOG_TIMEOUT 2 /* 2 minute default timeout */

Просмотреть файл

@ -34,7 +34,7 @@
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/delay.h> #include <linux/jiffies.h>
/* Addresses to scan */ /* Addresses to scan */
static const unsigned short normal_i2c[] = { static const unsigned short normal_i2c[] = {

Просмотреть файл

@ -33,6 +33,7 @@
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/jiffies.h>
/* Addresses to scan */ /* Addresses to scan */
static const unsigned short normal_i2c[] = { 0x2e, 0x2f, I2C_CLIENT_END }; static const unsigned short normal_i2c[] = { 0x2e, 0x2f, I2C_CLIENT_END };