Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3734153imm; Mon, 2 Jul 2018 04:46:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLDqbpPJ4f3qemwmDTgccPvk6yPKYSihOp3yb5By/J9t22OByv6gE5JnngEEYvBtdvTHFQB X-Received: by 2002:a17:902:24e:: with SMTP id 72-v6mr25407302plc.87.1530531967223; Mon, 02 Jul 2018 04:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530531967; cv=none; d=google.com; s=arc-20160816; b=D+gMof6ob6qdA/aL5nFzpOF0xpMyNulU6fD3PrKvL+ArGnKa9W1iG183Td+3U69auK mD/OJ4DUyn7IV9Iqk1gpe5S6i7i3IKzPHCj6FZ3l29dgwmMKwsaKtEovZimGjPjW4+Li qwRc05zhc+Vm7V3s8eJPgDn/QoT9Y2UUMWh9J+pEqDG8zzTRuESHDwIxJeBzjBwU82I6 UVzGKVCeVK+BTwzH0KyRcRJbeOLwIZFbas9UzBNr9G4JWJMrmjHg8z21WH/+glCWcOLO TP5Zr47ESwsTh2fGvf0l8b98LAFvoQpQxmIsH4fcCdqavsitOog7vHd8QErbiVCY2u+i 7KwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=o8582OLoYCjdYhPhm1aiFOx6FMzDPNAyFLQIEaIsacs=; b=e7ZcocRKDFGFQSXS/Hxgoyhu3jUAgfezpf1kJfXenr3x3HaS7D3YGRpsHi3GKVBl5D R7C8sKZXcKZM073Wlzgt9EiJHCSIl5ztZBS91BAjSueFFpauP0iwLD51hLrBUeM1xiew RCZzmFZ8tU3fUP2uEqKZGTabdVE7D9V5qZYjB+QF38YMmORyLPL1bHZatq4wbhAQRYke fxDWevjHUkJ0fFBNDt6KLo7O7yE631WYsihRcmhzhQhgRnDtYueuvNpae4xwQMoahrLV w/vYY70e04s7BoF+HUDw1P7DwdGaLyW1kgdvLF7bHewfeYXILF9u8H1f415lOOFoNf8r gSiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 t128-v6si4685286pfc.194.2018.07.02.04.45.52; Mon, 02 Jul 2018 04:46:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753476AbeGBLQN (ORCPT + 99 others); Mon, 2 Jul 2018 07:16:13 -0400 Received: from muru.com ([72.249.23.125]:49520 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753155AbeGBLQK (ORCPT ); Mon, 2 Jul 2018 07:16:10 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 92F408047; Mon, 2 Jul 2018 11:19:03 +0000 (UTC) Date: Mon, 2 Jul 2018 04:16:05 -0700 From: Tony Lindgren To: Arvind Yadav Cc: nsekhar@ti.com, khilman@kernel.org, linux@armlinux.org.uk, kaloz@openwrt.org, khalasa@piap.pl, aaro.koskinen@iki.fi, 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, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 08/11 v2] ARM: OMAP1: constify gpio_led Message-ID: <20180702111605.GS112168@atomide.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arvind Yadav [171225 22:40]: > 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'. Sorry just noticed I still have this one tagged and it's still pending.. Applying into omap-for-v4.19/omap1. Regards, Tony > arch/arm/mach-omap1/board-h2.c | 2 +- > arch/arm/mach-omap1/board-h3.c | 2 +- > arch/arm/mach-omap1/board-htcherald.c | 2 +- > arch/arm/mach-omap1/board-osk.c | 4 ++-- > 4 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c > index ab51f85..9aeb8ad 100644 > --- a/arch/arm/mach-omap1/board-h2.c > +++ b/arch/arm/mach-omap1/board-h2.c > @@ -274,7 +274,7 @@ static struct platform_device h2_kp_device = { > .resource = h2_kp_resources, > }; > > -static struct gpio_led h2_gpio_led_pins[] = { > +static const struct gpio_led h2_gpio_led_pins[] = { > { > .name = "h2:red", > .default_trigger = "heartbeat", > diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c > index ad339f5..2edcd63 100644 > --- a/arch/arm/mach-omap1/board-h3.c > +++ b/arch/arm/mach-omap1/board-h3.c > @@ -326,7 +326,7 @@ static struct spi_board_info h3_spi_board_info[] __initdata = { > }, > }; > > -static struct gpio_led h3_gpio_led_pins[] = { > +static const struct gpio_led h3_gpio_led_pins[] = { > { > .name = "h3:red", > .default_trigger = "heartbeat", > diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c > index 67d4669..e6a79fd 100644 > --- a/arch/arm/mach-omap1/board-htcherald.c > +++ b/arch/arm/mach-omap1/board-htcherald.c > @@ -292,7 +292,7 @@ static struct platform_device herald_gpiokeys_device = { > }; > > /* LEDs for the Herald. These connect to the HTCPLD GPIO device. */ > -static struct gpio_led gpio_leds[] = { > +static const struct gpio_led gpio_leds[] = { > {"dpad", NULL, HTCPLD_GPIO_LED_DPAD, 0, 0, LEDS_GPIO_DEFSTATE_OFF}, > {"kbd", NULL, HTCPLD_GPIO_LED_KBD, 0, 0, LEDS_GPIO_DEFSTATE_OFF}, > {"vibrate", NULL, HTCPLD_GPIO_LED_VIBRATE, 0, 0, LEDS_GPIO_DEFSTATE_OFF}, > diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c > index c66372e..e2277b5 100644 > --- a/arch/arm/mach-omap1/board-osk.c > +++ b/arch/arm/mach-omap1/board-osk.c > @@ -167,7 +167,7 @@ static struct platform_device *osk5912_devices[] __initdata = { > &osk5912_cf_device, > }; > > -static struct gpio_led tps_leds[] = { > +static const struct gpio_led tps_leds[] = { > /* NOTE: D9 and D2 have hardware blink support. > * Also, D9 requires non-battery power. > */ > @@ -385,7 +385,7 @@ static struct platform_device osk5912_lcd_device = { > .id = -1, > }; > > -static struct gpio_led mistral_gpio_led_pins[] = { > +static const struct gpio_led mistral_gpio_led_pins[] = { > { > .name = "mistral:red", > .default_trigger = "heartbeat", > -- > 2.7.4 >