diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2017-05-21 22:34:41 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2017-06-11 17:08:19 -0700 |
commit | 8116e8dd564fcbadf9f3697dcd0c3d37c049fb45 (patch) | |
tree | 4e794e033be923a7a68e2bd26be08900b17e29c9 | |
parent | 570999f306fc0375a533a1906ff35fffe289e36b (diff) | |
download | op-kernel-dev-8116e8dd564fcbadf9f3697dcd0c3d37c049fb45.zip op-kernel-dev-8116e8dd564fcbadf9f3697dcd0c3d37c049fb45.tar.gz |
hwmon: (ltc4245) move header file out of I2C realm
include/linux/i2c is not for client devices. Move the header file to a
more appropriate location.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | Documentation/hwmon/ltc4245 | 2 | ||||
-rw-r--r-- | drivers/hwmon/ltc4245.c | 2 | ||||
-rw-r--r-- | include/linux/platform_data/ltc4245.h (renamed from include/linux/i2c/ltc4245.h) | 0 |
3 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/hwmon/ltc4245 b/Documentation/hwmon/ltc4245 index b478b08..4ca7a9d 100644 --- a/Documentation/hwmon/ltc4245 +++ b/Documentation/hwmon/ltc4245 @@ -96,7 +96,7 @@ slowly, -EAGAIN will be returned when you read the sysfs attribute containing the sensor reading. The LTC4245 chip can be configured to sample all GPIO pins with two methods: -1) platform data -- see include/linux/i2c/ltc4245.h +1) platform data -- see include/linux/platform_data/ltc4245.h 2) OF device tree -- add the "ltc4245,use-extra-gpios" property to each chip The default mode of operation is to sample a single GPIO pin. diff --git a/drivers/hwmon/ltc4245.c b/drivers/hwmon/ltc4245.c index 4680d89..082f0a0 100644 --- a/drivers/hwmon/ltc4245.c +++ b/drivers/hwmon/ltc4245.c @@ -23,7 +23,7 @@ #include <linux/hwmon.h> #include <linux/hwmon-sysfs.h> #include <linux/jiffies.h> -#include <linux/i2c/ltc4245.h> +#include <linux/platform_data/ltc4245.h> /* Here are names of the chip's registers (a.k.a. commands) */ enum ltc4245_cmd { diff --git a/include/linux/i2c/ltc4245.h b/include/linux/platform_data/ltc4245.h index 56bda4b..56bda4b 100644 --- a/include/linux/i2c/ltc4245.h +++ b/include/linux/platform_data/ltc4245.h |