Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751040AbdLZGf4 (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 X-Google-Smtp-Source: ACJfBovs5BdbDM5O9MRxmTd57nso0kwaXtGrwcq7OAWfAVih/FwiXTPHH1gn46F8XcIm/e3hEHCDlg== 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 986 Lines: 30 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, -- 2.7.4