From khali@linux-fr.org Mon Jun 6 10:37:37 2005 Date: Mon, 6 Jun 2005 19:34:45 +0200 From: Jean Delvare To: Greg KH Cc: Yani Ioannou Subject: I2C: rename i2c-sysfs.h to hwmon-sysfs.h Message-Id: <20050606193445.28401c23.khali@linux-fr.org> This patch renames the new linux/i2c-sysfs.h header file to linux/hwmon-sysfs.h. This names seems to be more appropriate since this file defines macros and structures not related to i2c but to hardware monitoring drivers. The patch also updates the five hardware monitoring driver which include that header file already. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- drivers/i2c/chips/adm1026.c | 2 +- drivers/i2c/chips/it87.c | 2 +- drivers/i2c/chips/lm63.c | 2 +- drivers/i2c/chips/lm83.c | 2 +- drivers/i2c/chips/lm90.c | 2 +- include/linux/hwmon-sysfs.h | 36 ++++++++++++++++++++++++++++++++++++ include/linux/i2c-sysfs.h | 36 ------------------------------------ 7 files changed, 41 insertions(+), 41 deletions(-) --- gregkh-2.6.orig/drivers/i2c/chips/adm1026.c 2005-06-09 21:58:11.000000000 -0700 +++ gregkh-2.6/drivers/i2c/chips/adm1026.c 2005-06-09 21:58:13.000000000 -0700 @@ -29,8 +29,8 @@ #include #include #include -#include #include +#include /* Addresses to scan */ static unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; --- gregkh-2.6.orig/drivers/i2c/chips/it87.c 2005-06-09 21:58:11.000000000 -0700 +++ gregkh-2.6/drivers/i2c/chips/it87.c 2005-06-09 21:58:13.000000000 -0700 @@ -37,8 +37,8 @@ #include #include #include -#include #include +#include #include --- gregkh-2.6.orig/drivers/i2c/chips/lm63.c 2005-06-09 21:58:11.000000000 -0700 +++ gregkh-2.6/drivers/i2c/chips/lm63.c 2005-06-09 21:58:13.000000000 -0700 @@ -43,7 +43,7 @@ #include #include #include -#include +#include /* * Addresses to scan --- gregkh-2.6.orig/drivers/i2c/chips/lm83.c 2005-06-09 21:58:11.000000000 -0700 +++ gregkh-2.6/drivers/i2c/chips/lm83.c 2005-06-09 21:58:13.000000000 -0700 @@ -33,7 +33,7 @@ #include #include #include -#include +#include /* * Addresses to scan --- gregkh-2.6.orig/drivers/i2c/chips/lm90.c 2005-06-09 21:58:11.000000000 -0700 +++ gregkh-2.6/drivers/i2c/chips/lm90.c 2005-06-09 21:58:13.000000000 -0700 @@ -76,7 +76,7 @@ #include #include #include -#include +#include /* * Addresses to scan --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ gregkh-2.6/include/linux/hwmon-sysfs.h 2005-06-09 21:58:13.000000000 -0700 @@ -0,0 +1,36 @@ +/* + * hwmon-sysfs.h - hardware monitoring chip driver sysfs defines + * + * Copyright (C) 2005 Yani Ioannou + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ +#ifndef _LINUX_HWMON_SYSFS_H +#define _LINUX_HWMON_SYSFS_H + +struct sensor_device_attribute{ + struct device_attribute dev_attr; + int index; +}; +#define to_sensor_dev_attr(_dev_attr) \ + container_of(_dev_attr, struct sensor_device_attribute, dev_attr) + +#define SENSOR_DEVICE_ATTR(_name,_mode,_show,_store,_index) \ +struct sensor_device_attribute sensor_dev_attr_##_name = { \ + .dev_attr = __ATTR(_name,_mode,_show,_store), \ + .index = _index, \ +} + +#endif /* _LINUX_HWMON_SYSFS_H */ --- gregkh-2.6.orig/include/linux/i2c-sysfs.h 2005-06-09 21:58:11.000000000 -0700 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ -/* - * i2c-sysfs.h - i2c chip driver sysfs defines - * - * Copyright (C) 2005 Yani Ioannou - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ -#ifndef _LINUX_I2C_SYSFS_H -#define _LINUX_I2C_SYSFS_H - -struct sensor_device_attribute{ - struct device_attribute dev_attr; - int index; -}; -#define to_sensor_dev_attr(_dev_attr) \ - container_of(_dev_attr, struct sensor_device_attribute, dev_attr) - -#define SENSOR_DEVICE_ATTR(_name,_mode,_show,_store,_index) \ -struct sensor_device_attribute sensor_dev_attr_##_name = { \ - .dev_attr = __ATTR(_name,_mode,_show,_store), \ - .index = _index, \ -} - -#endif /* _LINUX_I2C_SYSFS_H */