From: yxj Date: Thu, 27 Dec 2012 09:02:26 +0000 (+0800) Subject: rkfb_sys.c:fix warning X-Git-Tag: firefly_0821_release~8054 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fd2f2c779acd04ae42aa6c91b6f2eb3403112637;p=firefly-linux-kernel-4.4.55.git rkfb_sys.c:fix warning warning: initialization discards qualifiers from pointer target type warning: no return statement in function returning non-void --- diff --git a/drivers/video/rockchip/rkfb_sysfs.c b/drivers/video/rockchip/rkfb_sysfs.c index 67ba6c9f8db7..5714cf10d6a2 100644 --- a/drivers/video/rockchip/rkfb_sysfs.c +++ b/drivers/video/rockchip/rkfb_sysfs.c @@ -275,13 +275,14 @@ static ssize_t set_fb_win_map(struct device *dev,struct device_attribute *attr, static ssize_t show_dsp_lut(struct device *dev, struct device_attribute *attr, char *buf) { - + + return 0; } static ssize_t set_dsp_lut(struct device *dev,struct device_attribute *attr, const char *buf, size_t count) { int dsp_lut[256]; - char *start = buf; + const char *start = buf; int i=256,j,temp; int space_max = 10;