From patchwork Thu May 11 11:48:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9721255 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7FD266031B for ; Thu, 11 May 2017 11:49:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78DBA28667 for ; Thu, 11 May 2017 11:49:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DB9428669; Thu, 11 May 2017 11:49:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C31228667 for ; Thu, 11 May 2017 11:49:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932250AbdEKLtZ (ORCPT ); Thu, 11 May 2017 07:49:25 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:56999 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932405AbdEKLtN (ORCPT ); Thu, 11 May 2017 07:49:13 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0MPIxM-1d4Orp03vs-004ToU; Thu, 11 May 2017 13:48:25 +0200 From: Arnd Bergmann To: Dmitry Torokhov Cc: Arnd Bergmann , Lee Jones , Enric Balletbo Serra , Douglas Anderson , Brian Norris , Rajat Jain , Gwendal Grignou , Guenter Roeck , Vic Yang , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] input: cros_ec_keyb: remove extraneous 'const' Date: Thu, 11 May 2017 13:48:04 +0200 Message-Id: <20170511114822.2951151-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:aORUnjNKNrG+e1cP+MTaLVZ//B+9biM5oOn1wPoNBJLdycztYwI 7elCUs+iqK2yCYpEa+guN1v46Uv+B2wBr292ts++QCo04iSw9Fh0CUl/t+qIhmsRYhyZLK5 p6uZhMKnMWmDgoqLnia8ENloOojRGs95iAG53+6vQewU0nx4UhSnA17NDjmj7FZ7BfFUTMM 5bwJvF7xaGssj9LIa8wcg== X-UI-Out-Filterresults: notjunk:1; V01:K0:NPDk8NQYpUc=:5OmFRmnOGcbNe4SfUppuGD SE/dK5/CsYG3nRKqX7DkXeATXUz5+4WtwPtstHvjA/kzS3AmmO5SoG5y2Kzpd3XKD7jBYcnV+ s4sh9xi0oJsMnWTzT1tG97su/LFyiYIyfheBOqmT1peFhIREL1mP432LMSUkXTO0h8GC3F0/a XI2WRWNCmFTykeNPmm0imjYKPhUlRt3F6W0w6EretlpxrXBw0MO18/4QP1dZsMHvBohbm8RZE rWkBX6vBRpBhx9UVTYt3Ns2oNVYUj392v94jKejmoiplaRE81L4qX/8z0sFOVk/jVvC0IHjAk H6E4Jl/wAcR9tz2BPrPU/SwF9w7T7YW+9t7qhn0al02u2IDlpwwYK9Y8kqtTfreCzLy5mYbH2 HiB+DHIzP9zk24F0q5vTu67K7JzztqO1sv9oBybjyar75PCFA693Wy130CygqeKr+0MmVtK// Q8LkwE/AxZ3N6ISBX2KXFECfh1J1Jd/gv/3WBVZw1A2d/a8WyE7PqWDUlHRCnsIrf8rUEBrZ+ tL17mFjICLcNQbnwk65harcUUu9vRH2f9d7JUFMLsQKdZ8JIMKMEkyRYSuwoXEPfJsOoO+LO1 mEA1e5SCj3rijbV+Swt8CyxjrCBB5hQY5hq/uiaxq3GcrlSjbiy+ydVfge5RuvdPVxy5bSCgE fo8r3qJkfHCG5H8RjRckqPyRX66rZXZOMAPfF5nBfcEfBG7YrEvUZv3KuaHwwvnut+QE= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP gcc-7 warns about 'const SIMPLE_DEV_PM_OPS', as that macro already constains 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: 6af6dc2d2aa6 ("input: Add ChromeOS EC keyboard driver") Signed-off-by: Arnd Bergmann --- drivers/input/keyboard/cros_ec_keyb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c index c7a8120b13c0..79eb29550c34 100644 --- a/drivers/input/keyboard/cros_ec_keyb.c +++ b/drivers/input/keyboard/cros_ec_keyb.c @@ -660,7 +660,7 @@ static const struct of_device_id cros_ec_keyb_of_match[] = { MODULE_DEVICE_TABLE(of, cros_ec_keyb_of_match); #endif -static const SIMPLE_DEV_PM_OPS(cros_ec_keyb_pm_ops, NULL, cros_ec_keyb_resume); +static SIMPLE_DEV_PM_OPS(cros_ec_keyb_pm_ops, NULL, cros_ec_keyb_resume); static struct platform_driver cros_ec_keyb_driver = { .probe = cros_ec_keyb_probe,