]> git.hungrycats.org Git - linux/commitdiff
staging: nvec: remove duplicated const
authorPeng Fan <van.freenix@gmail.com>
Tue, 16 Jun 2015 15:13:21 +0000 (23:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:11:22 +0000 (10:11 +0200)
commit 716baa7b430c66187a41e4d41eedf5de01343b21 upstream.

Sparse checking warning:
"drivers/staging/nvec/nvec_ps2.c:172:14: warning: duplicate const".
Remove the duplicated const to fix the warning.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec_ps2.c

index 3f631c067f5419cdf206025c314eda91f8f484a6..dd2ebd223867209324c8ece673ddf16c8520eaf0 100644 (file)
@@ -165,8 +165,8 @@ static int nvec_mouse_resume(struct device *dev)
 }
 #endif
 
-static const SIMPLE_DEV_PM_OPS(nvec_mouse_pm_ops, nvec_mouse_suspend,
-                               nvec_mouse_resume);
+static SIMPLE_DEV_PM_OPS(nvec_mouse_pm_ops, nvec_mouse_suspend,
+                        nvec_mouse_resume);
 
 static struct platform_driver nvec_mouse_driver = {
        .probe  = nvec_mouse_probe,