提交 f2d03e1b 编写于 作者: Y Yani Ioannou 提交者: Greg Kroah-Hartman

[PATCH] Driver Core: include: update device attribute callbacks

Signed-off-by: NYani Ioannou <yani.ioannou@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 060b8845
...@@ -189,7 +189,7 @@ extern void ocp_for_each_device(void(*callback)(struct ocp_device *, void *arg), ...@@ -189,7 +189,7 @@ extern void ocp_for_each_device(void(*callback)(struct ocp_device *, void *arg),
/* Sysfs support */ /* Sysfs support */
#define OCP_SYSFS_ADDTL(type, format, name, field) \ #define OCP_SYSFS_ADDTL(type, format, name, field) \
static ssize_t \ static ssize_t \
show_##name##_##field(struct device *dev, char *buf) \ show_##name##_##field(struct device *dev, struct device_attribute *attr, char *buf) \
{ \ { \
struct ocp_device *odev = to_ocp_dev(dev); \ struct ocp_device *odev = to_ocp_dev(dev); \
type *add = odev->def->additions; \ type *add = odev->def->additions; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册