From patchwork Tue Dec 26 06:35:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 10132885 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 EC4A360211 for ; Tue, 26 Dec 2017 06:36:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCD302DBDF for ; Tue, 26 Dec 2017 06:36:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0DC42E313; Tue, 26 Dec 2017 06:36:06 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 88AF52DBDF for ; Tue, 26 Dec 2017 06:36:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751021AbdLZGf4 (ORCPT ); Tue, 26 Dec 2017 01:35:56 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:43444 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbdLZGfy (ORCPT ); Tue, 26 Dec 2017 01:35:54 -0500 Received: by mail-pf0-f193.google.com with SMTP id e3so18427337pfi.10; Mon, 25 Dec 2017 22:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jpCJN8hMqjcBXJylpVsbQunMN52QmHiKk+oBsyqvBJ4=; b=X43PW6bhShPlq/Q5/bleZ+j/7AuH2KP/h/yAw8FmY/v53iX/r2haW5memxx8p/c8Zj q3295YwEB7U1r/+XTONKMCEKJJc7+Sxhg7nRV9KBOfOOEJa9WzgHCqQdO/gvZSAKw/tb jc8Fv8IMUEW6IQsfSdjKimifvoBpl+GleVoUGQsKI9k2eOWAKjTMrWoRCx7twkegY5OZ 2YiX0xMfEg0We3fCgYNckbfNtqTYaJ2a0ykyMISra+0azOk4TriZI0bKwbTY9K3AqMG6 lAZLlaiUNblMA295ElthS5npHDxB7Sw6Ey9MaBxmHzC2afnZGZsG4FR5p5r/lbpGN6B9 IcQA== 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:in-reply-to :references; bh=jpCJN8hMqjcBXJylpVsbQunMN52QmHiKk+oBsyqvBJ4=; b=dDudgGyJ0VWig8waNFe6hyB9DTL/nI17/HcP6EiF5HwYxCRu4gQeYDy0zHh0QyZTqg kzl6JTavf1HDJNI7gKaQ6ANzqeJGtiCj+3bUv50RElhzLBpeBNlr/48DVgNPSeFX/6Au uk+QUzErAezQV+9SoSirvUH9ws42O3AgNC0RZ33MQQY+Mciz67q3AgdMwSpzi59ZUvnh 576/FDWRNWKkOf3vWPIHE+d15JhIM95REuGmxeJVULYop8UF8MiAQhTfwc5vuoJZ6XTd Guu3mxblfu8Yg8/vDEYQOUO2gA3mJAgdW/wInRe6tmCVU/rpyzjTBpiUj7+BIhsJZNYQ i8aw== X-Gm-Message-State: AKGB3mKAISlIP8W5eWf147Lcfaa2pXy9a0zrlW6Eo6qzh42nszerMJ31 kdq/Z2/HMW0NOZJDy+MFHME= X-Google-Smtp-Source: ACJfBovs5BdbDM5O9MRxmTd57nso0kwaXtGrwcq7OAWfAVih/FwiXTPHH1gn46F8XcIm/e3hEHCDlg== X-Received: by 10.101.77.195 with SMTP id q3mr222319pgt.420.1514270154031; Mon, 25 Dec 2017 22:35:54 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id q72sm64637222pfi.42.2017.12.25.22.35.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Dec 2017 22:35:53 -0800 (PST) From: Arvind Yadav To: nsekhar@ti.com, khilman@kernel.org, linux@armlinux.org.uk, kaloz@openwrt.org, khalasa@piap.pl, aaro.koskinen@iki.fi, tony@atomide.com, jason@lakedaemon.net, andrew@lunn.ch, sebastian.hesselbarth@gmail.com, gregory.clement@free-electrons.com, daniel@zonque.org, haojian.zhuang@gmail.com, marek.vasut@gmail.com, slapin@ossfans.org, jic23@cam.ac.uk, kgene@kernel.org, krzk@kernel.org, ralf@linux-mips.org, ysato@users.sourceforge.jp, dalias@libc.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com Cc: linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org Subject: [PATCH 05/11 v2] sh: mach-rsk: rsk7203: constify gpio_led Date: Tue, 26 Dec 2017 12:05:40 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: The GPIO LED driver can be built as a module, it can be loaded after the init sections have gone away. So removed '__initconst'. arch/sh/boards/mach-rsk/devices-rsk7203.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/boards/mach-rsk/devices-rsk7203.c b/arch/sh/boards/mach-rsk/devices-rsk7203.c index a8089f7..6676c0e 100644 --- a/arch/sh/boards/mach-rsk/devices-rsk7203.c +++ b/arch/sh/boards/mach-rsk/devices-rsk7203.c @@ -50,7 +50,7 @@ static struct platform_device smsc911x_device = { }, }; -static struct gpio_led rsk7203_gpio_leds[] = { +static const struct gpio_led rsk7203_gpio_leds[] = { { .name = "green", .gpio = GPIO_PE10,