mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] Driver Core: drivers/i2c/chips/w83781d.c - drivers/s390/block/dcssblk.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
a5099cfc2e
commit
e404e274f6
24 changed files with 100 additions and 99 deletions
|
|
@ -69,7 +69,7 @@ struct bus_type mca_bus_type = {
|
|||
};
|
||||
EXPORT_SYMBOL (mca_bus_type);
|
||||
|
||||
static ssize_t mca_show_pos_id(struct device *dev, char *buf)
|
||||
static ssize_t mca_show_pos_id(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
/* four digits, \n and trailing \0 */
|
||||
struct mca_device *mca_dev = to_mca_device(dev);
|
||||
|
|
@ -81,7 +81,7 @@ static ssize_t mca_show_pos_id(struct device *dev, char *buf)
|
|||
len = sprintf(buf, "none\n");
|
||||
return len;
|
||||
}
|
||||
static ssize_t mca_show_pos(struct device *dev, char *buf)
|
||||
static ssize_t mca_show_pos(struct device *dev, struct device_attribute *attr, char *buf)
|
||||
{
|
||||
/* enough for 8 two byte hex chars plus space and new line */
|
||||
int j, len=0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue