Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754745AbdLTIss (ORCPT ); Wed, 20 Dec 2017 03:48:48 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:43918 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754564AbdLTIso (ORCPT ); Wed, 20 Dec 2017 03:48:44 -0500 X-Google-Smtp-Source: ACJfBos6LbjP59BFHVniJbu1oFgb/Hk7fN/f1bOXZE9nXJLpIsbssqnyb9nYwRG0y9oqeLBvDeufZw== 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, robert.jarzmik@free.fr, 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 Subject: [PATCH 04/11] x86: geode: constify gpio_led Date: Wed, 20 Dec 2017 14:17:45 +0530 Message-Id: <807e8a857faf9e01a2e776fda95e883bf1f842f9.1513756005.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1481 Lines: 53 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 --- arch/x86/platform/geode/alix.c | 2 +- arch/x86/platform/geode/geos.c | 2 +- arch/x86/platform/geode/net5501.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/platform/geode/alix.c b/arch/x86/platform/geode/alix.c index 1865c19..9626367 100644 --- a/arch/x86/platform/geode/alix.c +++ b/arch/x86/platform/geode/alix.c @@ -71,7 +71,7 @@ } }; -static struct gpio_led alix_leds[] = { +static const struct gpio_led alix_leds[] __initconst = { { .name = "alix:1", .gpio = 6, diff --git a/arch/x86/platform/geode/geos.c b/arch/x86/platform/geode/geos.c index 4fcdb91..119cfdc 100644 --- a/arch/x86/platform/geode/geos.c +++ b/arch/x86/platform/geode/geos.c @@ -54,7 +54,7 @@ } }; -static struct gpio_led geos_leds[] = { +static const struct gpio_led geos_leds[] __initconst = { { .name = "geos:1", .gpio = 6, diff --git a/arch/x86/platform/geode/net5501.c b/arch/x86/platform/geode/net5501.c index a2f6b98..ba604cc 100644 --- a/arch/x86/platform/geode/net5501.c +++ b/arch/x86/platform/geode/net5501.c @@ -57,7 +57,7 @@ } }; -static struct gpio_led net5501_leds[] = { +static const struct gpio_led net5501_leds[] __initconst = { { .name = "net5501:1", .gpio = 6, -- 1.9.1