|
@@ -335,8 +335,10 @@ extern void driver_attach(struct device_driver * drv);
|
|
|
|
|
|
struct device_attribute {
|
|
struct device_attribute {
|
|
struct attribute attr;
|
|
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) \
|
|
#define DEVICE_ATTR(_name,_mode,_show,_store) \
|