Received: by 10.213.65.68 with SMTP id h4csp546007imn; Fri, 30 Mar 2018 10:26:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx48OPay6B4gzOpz4MJuSRsji0AqJf/TK476fW2fNScz80HpyzjGKSGZbn976kGtHDroNdBQL X-Received: by 2002:a17:902:ab85:: with SMTP id f5-v6mr13527946plr.380.1522430760669; Fri, 30 Mar 2018 10:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522430760; cv=none; d=google.com; s=arc-20160816; b=Sc+f1MAWAfWC2f8A6Ks96GxGlZBblL5ZEWwlkD7TtEVHZ81xQTnYf8zlqsE9XPVvG8 B30vw+1/LE4041JvD0PCA5Mow9NeFiaILeaiBub9rrRepmGuffJYuZl0cJ1bXaYuG+L+ J1jXnG3P5Tuy4toIDCchnVf8Qv2aPA6DejrRqbdyW9eDuqENaOqACve5M0qtsoGdBYMx KyIsxwSDU2y6csF/7LDUsL9RaRUc+cYPGRuunWnkRxm181m8UxB/BTWMiDz5wiMUxF4L qe8owBy8p0LPvK6b+dn23ImUAWh92+gkBRPfqQl2+JBrOKe0LCXpNegfB2ACtdUZ9JZh FTKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Emi5NMQyxJ1acmpN0vs5gkVJw4/RDzjFLN7UrW3Os0I=; b=XVBrETEBqCXC91fulAc3UnD+UT1qzPYlcmyjltYbsE9cdExTpt8Qo0NyjFK5eu1Xtf vc9wLQfbVOfqAkh3CiVn9ZO40qpeNk0uAt1qnIVh/PBEPFkxsO7Royq/t8uK6XAuTfpS FGJVNLNgkHDyUUfGxgG8JoT/U8T5jHTdvwM2GRyi5ZVsHTxKpIhQHhzx1xWqsMKWQ1qq NURYV6HbHnAP4qPJqP9DYE5czeHHVguCy9XWaB60q+PSocYuOrMX0lsmYvCeLUzxO26E 4IsVNwxn2oFTINrxK7F2ea5Jg1eiAGcH/rsRS9kUZTEo3f09Wu7IL+zDwT/ue3SUmJPd W8mg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u59-v6si8697203plb.177.2018.03.30.10.25.46; Fri, 30 Mar 2018 10:26:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752357AbeC3RYY (ORCPT + 99 others); Fri, 30 Mar 2018 13:24:24 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58878 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752171AbeC3RYW (ORCPT ); Fri, 30 Mar 2018 13:24:22 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 01EF3260BD3 From: Sebastian Reichel To: Sebastian Reichel , Milo Kim , Lee Jones , Daniel Thompson , Rob Herring , Tony Lindgren Cc: Jingoo Han , Mark Rutland , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, Sebastian Reichel Subject: [PATCHv4 01/10] mfd: ti-lmu: constify mfd_cell tables Date: Fri, 30 Mar 2018 19:24:05 +0200 Message-Id: <20180330172414.26575-2-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180330172414.26575-1-sebastian.reichel@collabora.co.uk> References: <20180330172414.26575-1-sebastian.reichel@collabora.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add const attribute to all mfd_cell structures. Signed-off-by: Sebastian Reichel --- drivers/mfd/ti-lmu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/ti-lmu.c b/drivers/mfd/ti-lmu.c index cfb411cde51c..990437e5ed0a 100644 --- a/drivers/mfd/ti-lmu.c +++ b/drivers/mfd/ti-lmu.c @@ -25,7 +25,7 @@ #include struct ti_lmu_data { - struct mfd_cell *cells; + const struct mfd_cell *cells; int num_cells; unsigned int max_register; }; @@ -63,7 +63,7 @@ static void ti_lmu_disable_hw(struct ti_lmu *lmu) gpio_set_value(lmu->en_gpio, 0); } -static struct mfd_cell lm3532_devices[] = { +static const struct mfd_cell lm3532_devices[] = { { .name = "ti-lmu-backlight", .id = LM3532, @@ -78,7 +78,7 @@ static struct mfd_cell lm3532_devices[] = { .of_compatible = "ti,lm363x-regulator", \ } \ -static struct mfd_cell lm3631_devices[] = { +static const struct mfd_cell lm3631_devices[] = { LM363X_REGULATOR(LM3631_BOOST), LM363X_REGULATOR(LM3631_LDO_CONT), LM363X_REGULATOR(LM3631_LDO_OREF), @@ -91,7 +91,7 @@ static struct mfd_cell lm3631_devices[] = { }, }; -static struct mfd_cell lm3632_devices[] = { +static const struct mfd_cell lm3632_devices[] = { LM363X_REGULATOR(LM3632_BOOST), LM363X_REGULATOR(LM3632_LDO_POS), LM363X_REGULATOR(LM3632_LDO_NEG), @@ -102,7 +102,7 @@ static struct mfd_cell lm3632_devices[] = { }, }; -static struct mfd_cell lm3633_devices[] = { +static const struct mfd_cell lm3633_devices[] = { { .name = "ti-lmu-backlight", .id = LM3633, @@ -120,7 +120,7 @@ static struct mfd_cell lm3633_devices[] = { }, }; -static struct mfd_cell lm3695_devices[] = { +static const struct mfd_cell lm3695_devices[] = { { .name = "ti-lmu-backlight", .id = LM3695, @@ -128,7 +128,7 @@ static struct mfd_cell lm3695_devices[] = { }, }; -static struct mfd_cell lm3697_devices[] = { +static const struct mfd_cell lm3697_devices[] = { { .name = "ti-lmu-backlight", .id = LM3697, -- 2.16.2