提交 8116e8dd 编写于 作者: W Wolfram Sang 提交者: Guenter Roeck

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: NWolfram Sang <wsa@the-dreams.de>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 570999f3
...@@ -96,7 +96,7 @@ slowly, -EAGAIN will be returned when you read the sysfs attribute containing ...@@ -96,7 +96,7 @@ slowly, -EAGAIN will be returned when you read the sysfs attribute containing
the sensor reading. the sensor reading.
The LTC4245 chip can be configured to sample all GPIO pins with two methods: 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 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. The default mode of operation is to sample a single GPIO pin.
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <linux/hwmon.h> #include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h> #include <linux/hwmon-sysfs.h>
#include <linux/jiffies.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) */ /* Here are names of the chip's registers (a.k.a. commands) */
enum ltc4245_cmd { enum ltc4245_cmd {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册