Message ID | 2b8dd58f9d6dae7f0fa04694e8147524be9300ea.1514267721.git.arvind.yadav.cs@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 49D9C60211 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 26 Dec 2017 06:37:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B8CF2E795 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 26 Dec 2017 06:37:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 302C32E7AF; Tue, 26 Dec 2017 06:37:51 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B9AF82E795 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 26 Dec 2017 06:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Gil9peQIR/l0vASjJeI5YsQ0PeOBgM5rJGh4KEq69vo=; b=hMdtG7fmdWuYWvhtumEwdahOut BW3VtYxNbQLID8dFlLIV4Tw0s1Ak/TUfh2+2DnfpczXcF12X7MzVSr4OoksjQCTL+vlcRofidFc1W Ra5neEElV700EsLQQkmy04kKldsXUfOrft3Nu3/rdCDy5XnX3l2GF233+WvbnEAd8exXtpADB2f0J ap341U1a5PDbJ3D3fpRXJozJb5yI7KZxpDr78Y0jh6OyXvKOBjxh8lBJY90sqgglyfnGzmy+72Crf M9rH+TTOtqWxGiW33MLtuuWatiOr1jF92p2YZg/8k52dSHIN+/F4LAE9QvQq2/QmftYCUHo4WOIhm OvbX4evQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eTiry-0000UP-2x; Tue, 26 Dec 2017 06:37:46 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eTiru-0000Sh-8Z for linux-arm-kernel@lists.infradead.org; Tue, 26 Dec 2017 06:37:43 +0000 Received: by mail-pl0-x243.google.com with SMTP id s3so17466708plp.4 for <linux-arm-kernel@lists.infradead.org>; Mon, 25 Dec 2017 22:37:31 -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=MkMMjqpS73GRAhgmnfBqkegJTSoV3LEOv810vWsxNOA=; b=n2U4gcS+4JDyxmPpYdWZxHhUHvrwMHyiQTr9r2l9XIXFYfgFhkiT0WLbYZCN9J+0Tt iRhIsqSF3YA7D9BsBWFTuRuU44WybJ2ykm45f4aK8gzYrYgywL+PamkYMKWqmepYCWNn e7bcAmyW7xWiZkMWV5MwZchLAWmZ/eMwPlArSijXBcyjkCYMyGF7n04HiAMCQMfb+8Pb woXUMnoRkOzQcAJWDcycmsfxr6W+PWqrd3tinS6+frMr9hoaCpmYPhnuvaDgste7miZh OtwSzTTOMdoSOLQbEoXn1Q+n4eO/JyZddNldGR3q3pKALpTm4N15PspMXP8D+akf75OR 5zdg== 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=MkMMjqpS73GRAhgmnfBqkegJTSoV3LEOv810vWsxNOA=; b=rvD4T5Q0B9WM+79eDql0pCBVkflN4UUsby3r2d09MNSBV+C8Oat/qNvaglS/K88xYD 48ni9q+6NYw/Mrws5ASTWsWSuCiaelnr4rNMl6Nu388rJLTysioeQSZwm6vHsGmRfqLS YBQt+kdTciYG5E1pIPIk/WGf16bZRBjYbAbdHsVfaJAFKsgemoMdQjvq91cInOlZUH/w nBPMovWGt9ldWnOdKUPgt2NLJDcr1AvPawnLnA3pt6rQkeoFGCByUvpMSHns3oKgNiZK lvFe/Ccx44+1Tdi1FrYlw+u75vi3wyl1d9tVHURq0lJIP2eP2Ly19rhx6qcV/GaN2vVP LQug== X-Gm-Message-State: AKGB3mJ3XTCw6lP1ZIWQy/qKJ7sqZKUB7qjsNvEYIenRq5ZkA4u76Urs jQsK7b1qUIliOP572qr1/7k= X-Google-Smtp-Source: ACJfBov22jsV+euv1nqS2gBlG7+o0OKjncAMWqAp5zcUAdBcevIER7PznM/U1ucjirRpkZt2n55msQ== X-Received: by 10.159.198.148 with SMTP id g20mr24127998plo.89.1514270250741; Mon, 25 Dec 2017 22:37:30 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id r13sm61877584pfl.157.2017.12.25.22.37.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Dec 2017 22:37:30 -0800 (PST) From: Arvind Yadav <arvind.yadav.cs@gmail.com> 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 Subject: [PATCH 06/11 v2] ARM: davinci: constify gpio_led Date: Tue, 26 Dec 2017 12:07:09 +0530 Message-Id: <2b8dd58f9d6dae7f0fa04694e8147524be9300ea.1514267721.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <de0879ef47b96776e3f18a1889c41d976a677b21.1514267721.git.arvind.yadav.cs@gmail.com> References: <de0879ef47b96776e3f18a1889c41d976a677b21.1514267721.git.arvind.yadav.cs@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171225_223742_307321_E9C21A37 X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c index 0c02aaa..4da210a 100644 --- a/arch/arm/mach-davinci/board-neuros-osd2.c +++ b/arch/arm/mach-davinci/board-neuros-osd2.c @@ -128,7 +128,7 @@ static struct platform_device davinci_fb_device = { .num_resources = 0, }; -static struct gpio_led ntosd2_leds[] = { +static const struct gpio_led ntosd2_leds[] = { { .name = "led1_green", .gpio = GPIO(10), }, { .name = "led1_red", .gpio = GPIO(11), }, { .name = "led2_green", .gpio = GPIO(12), },
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by <linux/leds.h>. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> --- 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/arm/mach-davinci/board-neuros-osd2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)