Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2379
b: refs/heads/master
c: 54b6f35
h: refs/heads/master
i:
  2377: b74fe10
  2375: f41ed7b
v: v3
  • Loading branch information
Yani Ioannou authored and Greg Kroah-Hartman committed Jun 20, 2005
1 parent e9b9f4f commit e13fb50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca2b94ba12f3c36fd3d6ed9d38b3798d4dad0d8b
refs/heads/master: 54b6f35c99974e99e64c05c2895718355123c55f
4 changes: 2 additions & 2 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dev_attr_show(struct kobject * kobj, struct attribute * attr, char * buf)
ssize_t ret = -EIO;

if (dev_attr->show)
ret = dev_attr->show(dev, buf);
ret = dev_attr->show(dev, dev_attr, buf);
return ret;
}

Expand All @@ -52,7 +52,7 @@ dev_attr_store(struct kobject * kobj, struct attribute * attr,
ssize_t ret = -EIO;

if (dev_attr->store)
ret = dev_attr->store(dev, buf, count);
ret = dev_attr->store(dev, dev_attr, buf, count);
return ret;
}

Expand Down
6 changes: 4 additions & 2 deletions trunk/include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,10 @@ extern void driver_attach(struct device_driver * drv);

struct device_attribute {
struct attribute attr;
ssize_t (*show)(struct device * dev, char * buf);
ssize_t (*store)(struct device * dev, const char * buf, size_t count);
ssize_t (*show)(struct device *dev, struct device_attribute *attr,
char *buf);
ssize_t (*store)(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count);
};

#define DEVICE_ATTR(_name,_mode,_show,_store) \
Expand Down

0 comments on commit e13fb50

Please sign in to comment.