From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753099AbbCNHAo (ORCPT ); Sat, 14 Mar 2015 03:00:44 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:34604 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115AbbCNHAj (ORCPT ); Sat, 14 Mar 2015 03:00:39 -0400 Message-ID: <5503DC94.1060405@gmail.com> Date: Sat, 14 Mar 2015 00:00:36 -0700 From: Frank Rowand Reply-To: frowand.list@gmail.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Grant Likely , Rob Herring , Linux Kernel list , "devicetree@vger.kernel.org" Subject: [Patch 3/5] dt: unittest: add const where needed References: <5503C65F.4030000@gmail.com> In-Reply-To: <5503C65F.4030000@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Rowand Fix warnings pointed out by checkpatch. No bugs fixed, but the test code should be a good example of how to use the devicetree API. Signed-off-by: Frank Rowand --- drivers/of/unittest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: b/drivers/of/unittest.c =================================================================== --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -666,7 +666,7 @@ static void __init of_selftest_parse_int of_node_put(np); } -static struct of_device_id match_node_table[] = { +static const struct of_device_id match_node_table[] = { { .data = "A", .name = "name0", }, /* Name alone is lowest priority */ { .data = "B", .type = "type1", }, /* followed by type alone */ @@ -740,7 +740,7 @@ static void __init of_selftest_platform_ int irq, rc; struct device_node *np, *child, *grandchild; struct platform_device *pdev; - struct of_device_id match[] = { + const struct of_device_id match[] = { { .compatible = "test-device", }, {} }; @@ -941,7 +941,7 @@ static int selftest_remove(struct platfo return 0; } -static struct of_device_id selftest_match[] = { +static const struct of_device_id selftest_match[] = { { .compatible = "selftest", }, {}, }; @@ -1533,7 +1533,7 @@ static int selftest_i2c_bus_remove(struc return 0; } -static struct of_device_id selftest_i2c_bus_match[] = { +static const struct of_device_id selftest_i2c_bus_match[] = { { .compatible = "selftest-i2c-bus", }, {}, };