[PATCH] Driver Core: drivers/s390/net/qeth_sys.c - drivers/usb/gadget/pxa2xx_udc.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Этот коммит содержится в:

коммит произвёл
Greg Kroah-Hartman

родитель
3fd3c0a5f5
Коммит
10523b3b82
@@ -466,7 +466,7 @@ int eesoxscsi_proc_info(struct Scsi_Host *host, char *buffer, char **start, off_
|
||||
return pos;
|
||||
}
|
||||
|
||||
static ssize_t eesoxscsi_show_term(struct device *dev, char *buf)
|
||||
static ssize_t eesoxscsi_show_term(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct expansion_card *ec = ECARD_DEV(dev);
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
@@ -475,7 +475,7 @@ static ssize_t eesoxscsi_show_term(struct device *dev, char *buf)
|
||||
return sprintf(buf, "%d\n", info->control & EESOX_TERM_ENABLE ? 1 : 0);
|
||||
}
|
||||
|
||||
static ssize_t eesoxscsi_store_term(struct device *dev, const char *buf, size_t len)
|
||||
static ssize_t eesoxscsi_store_term(struct device *dev, struct device_attribute *attr, const char *buf, size_t len)
|
||||
{
|
||||
struct expansion_card *ec = ECARD_DEV(dev);
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
|
@@ -269,7 +269,7 @@ int powertecscsi_proc_info(struct Scsi_Host *host, char *buffer, char **start, o
|
||||
return pos;
|
||||
}
|
||||
|
||||
static ssize_t powertecscsi_show_term(struct device *dev, char *buf)
|
||||
static ssize_t powertecscsi_show_term(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct expansion_card *ec = ECARD_DEV(dev);
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
@@ -279,7 +279,7 @@ static ssize_t powertecscsi_show_term(struct device *dev, char *buf)
|
||||
}
|
||||
|
||||
static ssize_t
|
||||
powertecscsi_store_term(struct device *dev, const char *buf, size_t len)
|
||||
powertecscsi_store_term(struct device *dev, struct device_attribute *attr, const char *buf, size_t len)
|
||||
{
|
||||
struct expansion_card *ec = ECARD_DEV(dev);
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
|
Ссылка в новой задаче
Block a user