Skip to content

Commit 3af9256

Browse files
arndbdtor
authored andcommitted
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: 6af6dc2 ("input: Add ChromeOS EC keyboard driver") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 8be193c commit 3af9256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/keyboard/cros_ec_keyb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ static const struct of_device_id cros_ec_keyb_of_match[] = {
660660
MODULE_DEVICE_TABLE(of, cros_ec_keyb_of_match);
661661
#endif
662662

663-
static const SIMPLE_DEV_PM_OPS(cros_ec_keyb_pm_ops, NULL, cros_ec_keyb_resume);
663+
static SIMPLE_DEV_PM_OPS(cros_ec_keyb_pm_ops, NULL, cros_ec_keyb_resume);
664664

665665
static struct platform_driver cros_ec_keyb_driver = {
666666
.probe = cros_ec_keyb_probe,

0 commit comments

Comments
 (0)