Prev: reduce runqueue lock contention
Next: cgroups: Add an API to attach a task to current task's cgroup
From: Randy Dunlap on 20 May 2010 17:20 From: Randy Dunlap <randy.dunlap(a)oracle.com> Fix device attribute functions return types. drivers/video/backlight/s6e63m0.c:718: warning: initialization from incompatible pointer type drivers/video/backlight/s6e63m0.c:718: warning: initialization from incompatible pointer type drivers/video/backlight/s6e63m0.c:732: warning: initialization from incompatible pointer type Signed-off-by: Randy Dunlap <randy.dunlap(a)oracle.com> Cc: InKi Dae <inki.dae(a)samsung.com> Cc: Richard Purdie <rpurdie(a)rpsys.net> --- drivers/video/backlight/s6e63m0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- mmotm-2010-0519-1612.orig/drivers/video/backlight/s6e63m0.c +++ mmotm-2010-0519-1612/drivers/video/backlight/s6e63m0.c @@ -654,7 +654,7 @@ static const struct backlight_ops s6e63m .update_status = s6e63m0_set_brightness, }; -static int s6e63m0_sysfs_show_gamma_mode(struct device *dev, +static ssize_t s6e63m0_sysfs_show_gamma_mode(struct device *dev, struct device_attribute *attr, char *buf) { struct s6e63m0 *lcd = dev_get_drvdata(dev); @@ -681,7 +681,7 @@ static int s6e63m0_sysfs_show_gamma_mode return strlen(buf); } -static int s6e63m0_sysfs_store_gamma_mode(struct device *dev, +static ssize_t s6e63m0_sysfs_store_gamma_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) { @@ -718,7 +718,7 @@ static int s6e63m0_sysfs_store_gamma_mod static DEVICE_ATTR(gamma_mode, 0644, s6e63m0_sysfs_show_gamma_mode, s6e63m0_sysfs_store_gamma_mode); -static int s6e63m0_sysfs_show_gamma_table(struct device *dev, +static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev, struct device_attribute *attr, char *buf) { struct s6e63m0 *lcd = dev_get_drvdata(dev); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: reduce runqueue lock contention Next: cgroups: Add an API to attach a task to current task's cgroup |