mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] Driver Core: drivers/base - drivers/i2c/chips/adm1026.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ff381d2223
commit
74880c063b
12 changed files with 90 additions and 90 deletions
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
/* show configuration fields */
|
||||
|
||||
static ssize_t dio_show_id(struct device *dev, char *buf)
|
||||
static ssize_t dio_show_id(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct dio_dev *d;
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ static ssize_t dio_show_id(struct device *dev, char *buf)
|
|||
}
|
||||
static DEVICE_ATTR(id, S_IRUGO, dio_show_id, NULL);
|
||||
|
||||
static ssize_t dio_show_ipl(struct device *dev, char *buf)
|
||||
static ssize_t dio_show_ipl(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct dio_dev *d;
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ static ssize_t dio_show_ipl(struct device *dev, char *buf)
|
|||
}
|
||||
static DEVICE_ATTR(ipl, S_IRUGO, dio_show_ipl, NULL);
|
||||
|
||||
static ssize_t dio_show_secid(struct device *dev, char *buf)
|
||||
static ssize_t dio_show_secid(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct dio_dev *d;
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ static ssize_t dio_show_secid(struct device *dev, char *buf)
|
|||
}
|
||||
static DEVICE_ATTR(secid, S_IRUGO, dio_show_secid, NULL);
|
||||
|
||||
static ssize_t dio_show_name(struct device *dev, char *buf)
|
||||
static ssize_t dio_show_name(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct dio_dev *d;
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ static ssize_t dio_show_name(struct device *dev, char *buf)
|
|||
}
|
||||
static DEVICE_ATTR(name, S_IRUGO, dio_show_name, NULL);
|
||||
|
||||
static ssize_t dio_show_resource(struct device *dev, char *buf)
|
||||
static ssize_t dio_show_resource(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct dio_dev *d = to_dio_dev(dev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue