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: 99620 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp687833qge; Thu, 11 May 2017 04:49:26 -0700 (PDT) X-Received: by 10.98.100.207 with SMTP id y198mr12022703pfb.139.1494503366208; Thu, 11 May 2017 04:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494503366; cv=none; d=google.com; s=arc-20160816; b=RU2EDGlfdWiy7HcO+aKkD/9u3UJr/aD9UG8G0an1kDuYLF0kMwsP5pZqS4LUpR15Dn GQtBE3ksmt3VJlxpN5FpdD+QMzrddvfR+Ahuq1nIthD3IbMQMIS+53At4Uw6soG0aRXn o+VjM7hspQSvrzrDUQIkoSwE5jt273vlWMEqQbgPlfruk9kPIqMN2kb/2fj3l446/uCe 6bqjlKvjQtADdiLs3Q89O6uzU5qPDQMbrSE+JpfMi8MZndS2g5aFYg4jU+YdNNSCDHY/ +d8gLzI5tAZoc4xlXSKR0CMp5XtXDm9GD8ppJoi9tfcACwmXIisyR27+V1VefYZvN4Nb FEzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=sxSNsUA/Jr1zNFPqcHpz3PFHke2YkrOKT/2gsAGDVoc=; b=XMMw9SR16WIqIPxfGwPQUaHE35SYLWSUYScA1oIejOrzZqH2xrbsDPQ9fj3G4auoZ0 IS6zUig6sRK0B9owMrjilciIlpARkfi1xNocaFEyNn6ivuj+QgeDVrvL3yqkxs/jzMzg aOpV5hB3pQJREgl5jjEYbCiQ5LK72Bax12yxb46zfhRYfd+E0KZ2Qcz8JR0Sqf4dky2C U/VdpuWAa9EXxulh9zhImUrTp8OgNvBhhc7iTl8NjBzpz/r58v9NDAyFbFE+OXa+vHpl xglOx8Xit3UWJ0S7pvDLU4wnwuGmxubeWE3TmV9N1NOWqQ43PJ8DEMshY1Cm9NtskCrY MNaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si1583081pld.245.2017.05.11.04.49.26 for ; Thu, 11 May 2017 04:49:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org 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 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(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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,