From patchwork Fri May 1 15:53:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6310821 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4BFB69F32B for ; Fri, 1 May 2015 15:54:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7C40B20454 for ; Fri, 1 May 2015 15:54:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C56620439 for ; Fri, 1 May 2015 15:54:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754626AbbEAPyx (ORCPT ); Fri, 1 May 2015 11:54:53 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34264 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754581AbbEAPyr (ORCPT ); Fri, 1 May 2015 11:54:47 -0400 Received: by pacyx8 with SMTP id yx8so94203474pac.1; Fri, 01 May 2015 08:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=gD3X4fUpb9dI4oQJfPW7IgUcqRqxbJrYcS5Z1DqSIeU=; b=lvVcgz++GZnYq6u2PzG14l1jvluA8ILgFECY/IfOjMDmbhImdhy/WysorTYA1RVptS omOYpf+lFc5BLgxQ+A8QAj917H7/MZeHv6owp/IXPbPToJ3mYXbXeLT6i5MYROj8OIC5 ZeIuzQowrmgLTBRbmaJer2AqJznLCUxlft4mZkuxuM1nH1eBEpjtOok55/aeH6ivlqDf UA5xs6wWehlWfTG55BGa2Rgcp8zg6koE2GcsJHGkoL5gmmC+pY51O9pQF4I6p2TvrZXn Gn1raysJfCoCPVs3K7G5ovT5XwZtb8unR8RjbkgSh1lnqA7gOzm89ZjDIrN+MkSYImQu gZAQ== X-Received: by 10.68.175.66 with SMTP id by2mr18632191pbc.141.1430495686676; Fri, 01 May 2015 08:54:46 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id te4sm3862810pbc.88.2015.05.01.08.54.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 May 2015 08:54:45 -0700 (PDT) From: Krzysztof Kozlowski To: Dmitry Torokhov , Kukjin Kim , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] input: samsung-keypad: Constify platform_device_id Date: Sat, 2 May 2015 00:53:06 +0900 Message-Id: <1430495587-31762-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski --- drivers/input/keyboard/samsung-keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/samsung-keypad.c b/drivers/input/keyboard/samsung-keypad.c index 6b9fdf6cf8e8..43e48dac7687 100644 --- a/drivers/input/keyboard/samsung-keypad.c +++ b/drivers/input/keyboard/samsung-keypad.c @@ -585,7 +585,7 @@ static const struct of_device_id samsung_keypad_dt_match[] = { MODULE_DEVICE_TABLE(of, samsung_keypad_dt_match); #endif -static struct platform_device_id samsung_keypad_driver_ids[] = { +static const struct platform_device_id samsung_keypad_driver_ids[] = { { .name = "samsung-keypad", .driver_data = KEYPAD_TYPE_SAMSUNG,