[PATCH] Driver Core: drivers/i2c/chips/w83781d.c - drivers/s390/block/dcssblk.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a5099cfc2e
commit
e404e274f6
@ -103,7 +103,7 @@ static struct class i2c_adapter_class = {
|
||||
.release = &i2c_adapter_class_dev_release,
|
||||
};
|
||||
|
||||
static ssize_t show_adapter_name(struct device *dev, char *buf)
|
||||
static ssize_t show_adapter_name(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct i2c_adapter *adap = dev_to_i2c_adapter(dev);
|
||||
return sprintf(buf, "%s\n", adap->name);
|
||||
@ -117,7 +117,7 @@ static void i2c_client_release(struct device *dev)
|
||||
complete(&client->released);
|
||||
}
|
||||
|
||||
static ssize_t show_client_name(struct device *dev, char *buf)
|
||||
static ssize_t show_client_name(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct i2c_client *client = to_i2c_client(dev);
|
||||
return sprintf(buf, "%s\n", client->name);
|
||||
|
Reference in New Issue
Block a user