]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cros_ec_keyb - remove extraneous 'const'
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 May 2017 17:14:06 +0000 (10:14 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 12 May 2017 00:41:01 +0000 (17:41 -0700)
commit7418068c924f585011b7cc0da2ef553e346bf73f
tree6ecc50125f695a09f719b1ff2d60ec7587f150cb
parentc2fd673821d05b808094037dbed633554449640f
Input: cros_ec_keyb - remove extraneous 'const'

gcc-7 warns about 'const SIMPLE_DEV_PM_OPS', as that macro already contains
a 'const' keyword:

drivers/input/keyboard/cros_ec_keyb.c:663:14: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
 static const SIMPLE_DEV_PM_OPS(cros_ec_keyb_pm_ops, NULL, cros_ec_keyb_resume);

This removes the extra one.

Fixes: 10eec4219093 ("input: Add ChromeOS EC keyboard driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/cros_ec_keyb.c