From: Daniel Kurtz Date: Wed, 19 Dec 2012 03:26:51 +0000 (+0800) Subject: CHROMIUM: Input: cyapa - fix compile warning X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=00359e783cc326b8977ff4577bae8921a96d64c7;p=people%2Faperard%2Flinux-chromebook.git CHROMIUM: Input: cyapa - fix compile warning The string pointed to by fw_name is non-mutable, so make it const char *. Signed-off-by: Daniel Kurtz BUG=chromium-os:36911 TEST=builds without following warning: drivers/input/mouse/cyapa.c: In function 'cyapa_update_fw_store': drivers/input/mouse/cyapa.c:1351:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Change-Id: I43a3fc57a9462cece94d0c1db8011ae3084f8744 Reviewed-on: https://gerrit.chromium.org/gerrit/39934 Reviewed-by: Benson Leung Commit-Ready: Daniel Kurtz Reviewed-by: Daniel Kurtz Tested-by: Daniel Kurtz --- diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c index 2f0721b5ab487..a50ead6a0d29f 100644 --- a/drivers/input/mouse/cyapa.c +++ b/drivers/input/mouse/cyapa.c @@ -1341,7 +1341,7 @@ static ssize_t cyapa_update_fw_store(struct device *dev, const char *buf, size_t count) { struct cyapa *cyapa = dev_get_drvdata(dev); - char *fw_name; + const char *fw_name; int ret; /* Do not allow paths that step out of /lib/firmware */