]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
CHROMIUM: Input: cyapa - fix compile warning
authorDaniel Kurtz <djkurtz@chromium.org>
Wed, 19 Dec 2012 03:26:51 +0000 (11:26 +0800)
committerGerrit <chrome-bot@google.com>
Wed, 19 Dec 2012 06:20:53 +0000 (22:20 -0800)
The string pointed to by fw_name is non-mutable, so make it const char *.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
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 <bleung@chromium.org>
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/input/mouse/cyapa.c

index 2f0721b5ab4876e852f32eb878a99407e32f4947..a50ead6a0d29fdef2a5818b6159bb9497ef927f1 100644 (file)
@@ -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  */