dynamic sysfs callbacks
Subsystems (2)
PATCH 3/3 dynamic sysfs callbacks
The following are some misc manual fixes needed after the last (autogenerated) patch is applied.
Signed-off-by Yani Ioannou <[email protected]>
drivers/i2c/chips/w83627hf.c +1 -1
@@ -734,7 +734,7 @@ store_beep_reg(struct device *dev, const#define sysfs_beep (REG , reg) \ static ssize_t show_regs_beep_##reg (struct device *dev, char *buf, void *sdata) \ { \ - return show_beep_##reg(dev, buf); \ + return show_beep_##reg(dev, buf, sdata); \ } \ static ssize_t \ store_regs_beep_##reg (struct device *dev, const char *buf, size_t count, void *sdata) \
drivers/i2c/chips/w83781d.c +1 -1
@@ -585,7 +585,7 @@ store_beep_reg(struct device *dev, const#define sysfs_beep (REG , reg) \ static ssize_t show_regs_beep_##reg (struct device *dev, char *buf, void *sdata) \ { \ - return show_beep_##reg(dev, buf); \ + return show_beep_##reg(dev, buf, sdata); \ } \ static ssize_t store_regs_beep_##reg (struct device *dev, const char *buf, size_t count, void *sdata) \ { \
drivers/usb/media/sn9c102_core.c +8 -8
@@ -1130,14 +1130,14 @@ sn9c102_store_green(struct class_device*case BRIDGE_SN9C102 :if (value >0x0f )return -EINVAL ; -if ((res =sn9c102_store_reg (cd,"0x11" ,4 )) >=0 ) - res =sn9c102_store_val (cd, buf, len); +if ((res =sn9c102_store_reg (cd,"0x11" ,4 , sdata)) >=0 ) + res =sn9c102_store_val (cd, buf, len, sdata);break ;case BRIDGE_SN9C103 :if (value >0x7f )return -EINVAL ; -if ((res =sn9c102_store_reg (cd,"0x04" ,4 )) >=0 ) - res =sn9c102_store_val (cd, buf, len); +if ((res =sn9c102_store_reg (cd,"0x04" ,4 , sdata)) >=0 ) + res =sn9c102_store_val (cd, buf, len, sdata);break ; }
@@ -1156,8 +1156,8 @@ sn9c102_store_blue(struct class_device*if (!count || value >0x7f )return -EINVAL ; -if ((res =sn9c102_store_reg (cd,"0x06" ,4 )) >=0 ) - res =sn9c102_store_val (cd, buf, len); +if ((res =sn9c102_store_reg (cd,"0x06" ,4 , sdata)) >=0 ) + res =sn9c102_store_val (cd, buf, len, sdata);return res; }
@@ -1174,8 +1174,8 @@ sn9c102_store_red(struct class_device* cif (!count || value >0x7f )return -EINVAL ; -if ((res =sn9c102_store_reg (cd,"0x05" ,4 )) >=0 ) - res =sn9c102_store_val (cd, buf, len); +if ((res =sn9c102_store_reg (cd,"0x05" ,4 , sdata)) >=0 ) + res =sn9c102_store_val (cd, buf, len, sdata);return res; }
drivers/w1/w1_family.h +2 -2
@@ -34,10 +34,10 @@struct w1_family_ops { -ssize_t (* rname)(struct device *,char *); +ssize_t (* rname)(struct device *,char *,void *);ssize_t (* rbin)(struct kobject *,char *,loff_t ,size_t ); -ssize_t (* rval)(struct device *,char *); +ssize_t (* rval)(struct device *,char *,void *);unsigned char rvalname[MAXNAMELEN ]; };