From patchwork Sun Aug 13 09:45:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9897651 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 959BE60244 for ; Sun, 13 Aug 2017 09:46:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 845B428727 for ; Sun, 13 Aug 2017 09:46:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7824C2872C; Sun, 13 Aug 2017 09:46:04 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 2266228726 for ; Sun, 13 Aug 2017 09:46:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751031AbdHMJpp (ORCPT ); Sun, 13 Aug 2017 05:45:45 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36363 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbdHMJpo (ORCPT ); Sun, 13 Aug 2017 05:45:44 -0400 Received: by mail-pg0-f65.google.com with SMTP id y129so6446351pgy.3; Sun, 13 Aug 2017 02:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WCZB3TR12zFYAv5N8uVD7FjfQwA2WnOSvofsYyvkeM8=; b=MO73g/JGAmxsvsP0OsQcXE2v9Dh3yFUF8jQWoF3+8ixKoS3WABLFpdpoFTqN7ULpkW PZxjMCZXggJE1DoLQw0X1TRHdYixs9tl+7O7rbDVr8jMMIH6WFVPwrevfY+cdznL6rQ/ FNid0lQZcAEFG3VqPJVcp2fwhX2CY1bq3S/t/DofyEQtwkmojdK4n03TMI9+VuPvkLNG 8X9FBVLm0NT3N/HL7D8X0x15gCYVzjmNnFcLjK8C8lUi6DVy2qhcaGGrC/lRICYQdPXM AqKMTy29rceH50LSDwi8SEGi5b5jqmhbmMRvmVHvcHtwM3mlRXYC+gRyGX9s84LpvjYZ MULQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WCZB3TR12zFYAv5N8uVD7FjfQwA2WnOSvofsYyvkeM8=; b=t/BCR7/71I2XHy6vGiwhW62Jp80dqQoWVOQZoj/s6IdjjmYRM36rnsi3QFHcXmfYCj ACj43KQAjka0V6i+q95w5x8vPMMaLPga3A3rxJc9xQbeBUlGnOyAkXTkjIiu07WMTXVX 3MtFVBL2LSirIZk1b0IYliGFlYyvo7f5/UHXXST3LOCCJciwsD8PTZmkvxiYAytcuMgV FBWP71fL3h7nIX8vwzQ4osI9OaIkff9KD5Xk73GLXF7yp0KBVUXxCdMMFZ3qnGovzT98 nQnOHLtDa4556iy0bl+i79lt/8sKRNf707XISAXQ4WVeldgF6YLBIDfBaYizqlS6oC2I dR9w== X-Gm-Message-State: AHYfb5jGZt9SLpmpJgJTWW39m1j5+mZ8udhH/JVZQYmZ2gkQWsiiU97Y o3wkjnRuTpvqdg== X-Received: by 10.99.144.76 with SMTP id a73mr20529916pge.285.1502617543750; Sun, 13 Aug 2017 02:45:43 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.80]) by smtp.gmail.com with ESMTPSA id j71sm9550950pfj.44.2017.08.13.02.45.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Aug 2017 02:45:43 -0700 (PDT) From: Arvind Yadav To: jikos@kernel.org, jic23@kernel.org, srinivas.pandruvada@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH] HID: sensor: constify platform_device_id Date: Sun, 13 Aug 2017 15:15:32 +0530 Message-Id: <2ae0f9137a673466f09a9d5169c9ef13bbe66a30.1502617403.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 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 platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hid/hid-sensor-custom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-sensor-custom.c index 3a84aaf..5ad39fd 100644 --- a/drivers/hid/hid-sensor-custom.c +++ b/drivers/hid/hid-sensor-custom.c @@ -823,7 +823,7 @@ static int hid_sensor_custom_remove(struct platform_device *pdev) return 0; } -static struct platform_device_id hid_sensor_custom_ids[] = { +static const struct platform_device_id hid_sensor_custom_ids[] = { { .name = "HID-SENSOR-2000e1", },