[PATCH] hwmon: hwmon vs i2c, second round (06/11)
The only thing left in i2c-sensor.h are module parameter definition macros. It's only an extension of what i2c.h offers, and this extension is not sensors-specific. As a matter of fact, a few non-sensors drivers use them. So we better merge them in i2c.h, and get rid of i2c-sensor.h altogether. Signed-off-by: Jean Delvare <khali@linux-fr> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
96478ef3f3
commit
f4b5026120
@ -17,7 +17,6 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/i2c-sensor.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/rtc.h> /* get the user-level API */
|
||||
#include <linux/bcd.h>
|
||||
@ -40,7 +39,7 @@
|
||||
*/
|
||||
static unsigned short normal_i2c[] = { 0x68, I2C_CLIENT_END };
|
||||
|
||||
SENSORS_INSMOD_1(ds1337);
|
||||
I2C_CLIENT_INSMOD_1(ds1337);
|
||||
|
||||
static int ds1337_attach_adapter(struct i2c_adapter *adapter);
|
||||
static int ds1337_detect(struct i2c_adapter *adapter, int address, int kind);
|
||||
|
@ -33,14 +33,13 @@
|
||||
#include <linux/sched.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/i2c-sensor.h>
|
||||
|
||||
/* Addresses to scan */
|
||||
static unsigned short normal_i2c[] = { 0x50, 0x51, 0x52, 0x53, 0x54,
|
||||
0x55, 0x56, 0x57, I2C_CLIENT_END };
|
||||
|
||||
/* Insmod parameters */
|
||||
SENSORS_INSMOD_1(eeprom);
|
||||
I2C_CLIENT_INSMOD_1(eeprom);
|
||||
|
||||
|
||||
/* Size of EEPROM in bytes */
|
||||
|
@ -31,14 +31,13 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/i2c-sensor.h>
|
||||
#include <asm/semaphore.h>
|
||||
|
||||
/* Do not scan - the MAX6875 access method will write to some EEPROM chips */
|
||||
static unsigned short normal_i2c[] = {I2C_CLIENT_END};
|
||||
|
||||
/* Insmod parameters */
|
||||
SENSORS_INSMOD_1(max6875);
|
||||
I2C_CLIENT_INSMOD_1(max6875);
|
||||
|
||||
/* The MAX6875 can only read/write 16 bytes at a time */
|
||||
#define SLICE_SIZE 16
|
||||
|
@ -13,13 +13,12 @@
|
||||
#include <linux/slab.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/hwmon-sysfs.h>
|
||||
#include <linux/i2c-sensor.h>
|
||||
|
||||
/* Addresses to scan */
|
||||
static unsigned short normal_i2c[] = {0x74, 0x75, 0x76, 0x77, I2C_CLIENT_END};
|
||||
|
||||
/* Insmod parameters */
|
||||
SENSORS_INSMOD_1(pca9539);
|
||||
I2C_CLIENT_INSMOD_1(pca9539);
|
||||
|
||||
enum pca9539_cmd
|
||||
{
|
||||
|
@ -39,7 +39,6 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/i2c-sensor.h>
|
||||
|
||||
/* Addresses to scan */
|
||||
static unsigned short normal_i2c[] = { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
|
||||
@ -47,7 +46,7 @@ static unsigned short normal_i2c[] = { 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26,
|
||||
I2C_CLIENT_END };
|
||||
|
||||
/* Insmod parameters */
|
||||
SENSORS_INSMOD_2(pcf8574, pcf8574a);
|
||||
I2C_CLIENT_INSMOD_2(pcf8574, pcf8574a);
|
||||
|
||||
/* Initial values */
|
||||
#define PCF8574_INIT 255 /* All outputs on (input mode) */
|
||||
|
@ -24,14 +24,13 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/i2c-sensor.h>
|
||||
|
||||
/* Addresses to scan */
|
||||
static unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, 0x4c,
|
||||
0x4d, 0x4e, 0x4f, I2C_CLIENT_END };
|
||||
|
||||
/* Insmod parameters */
|
||||
SENSORS_INSMOD_1(pcf8591);
|
||||
I2C_CLIENT_INSMOD_1(pcf8591);
|
||||
|
||||
static int input_mode;
|
||||
module_param(input_mode, int, 0);
|
||||
|
Reference in New Issue
Block a user