Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp370593ybi; Fri, 24 May 2019 05:15:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxMrYmmjhhQGTzBR/1ieOasQXGjpUeVOynu3VZuaAQdL4IOn/IzP/tiyw23c6tCl1M3qIx X-Received: by 2002:a62:5587:: with SMTP id j129mr90910754pfb.45.1558700106839; Fri, 24 May 2019 05:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558700106; cv=none; d=google.com; s=arc-20160816; b=OsLB3WxPRtCN4xufaLQ6cCfnoICMnzXMRGLSZvAa0YMm1HokOWBvcqbvjOCfhgC1k3 EWWXT0rorQ3SI2aLpez3Lv5vJQSCwPqCAbA0lYbzGBFG9kXrE7s46ywYeA9WrKZ7a89J DVKusVQQN7d5MpTBf5pWesL+OkvJ+c6nSBtU8y9aNMJAeJtHTOddnk8bue10bBfJaeu6 qLVKZLsFd6deA/NzJpgJobJF1RjGJnY6IkPURefEQwROTEgBfzifeBiMn5QZ0P4Kc3Gl T54caqqZ9TJaJv4q1N4p/tSe69UZ6rTnmVUpws5fMZSUQPSHgbmjd9C/GnFdSjCxH1gT /XOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=Ic6SaIUprOJ9l44L07M1AKULLelAxLdceTmb7ck22Uw=; b=keIQkD2Jm0pauJAqsmBBD19cL98ngq9mqNHNhOOMHhrUXf7QRYCGHQWAHJjfbbgf4L LF4Deip2qgTrXyu+7lieeTFQK0/Crj1/gokPx1h2JHTf+1fUkrngq0OzDHZF6IP7BXW0 0QoPwEcR4//f6OnOguyyDg7RL0UjvtFjXvgbSUrhWxWQoPwXF1JwkLoz1jymQgqfQb2h 4+c9qS+EMCt6cKA5dIcN3CuRKXHUKh3E0VHckgV5/7P9F6uGoND7wzx5jYohxkzocm33 N4QledaqRwdgCYJnchyQxZjC3YsPIGx0Ztj8wVHXjBa/Lv6GmFp12wvec0z0O9G8ANpF UTeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=X3yU+3QE; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si3769313plz.225.2019.05.24.05.14.50; Fri, 24 May 2019 05:15:06 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=X3yU+3QE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391523AbfEXMMz (ORCPT + 99 others); Fri, 24 May 2019 08:12:55 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:43384 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391465AbfEXMMw (ORCPT ); Fri, 24 May 2019 08:12:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=Ic6SaIUprOJ9l44L07M1AKULLelAxLdceTmb7ck22Uw=; b=X3yU+3QEpVC4 j5toY3+4z5P40Fkm2ukgqzX4aT0PM5B9or8M1HUE0O9r5aXDwyTOCTxLqByiiWBnZIMUcSE8nlNAX hjCcKhnIRdBdY/vlo3BWtxa5Tb+FPne7rOajAcNnyBebn1L2MPGaHmWxqPNnTSSYN8GJp0ejcxPj/ eqVMI=; Received: from [176.12.107.140] (helo=finisterre.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hU943-0003DX-TR; Fri, 24 May 2019 12:12:48 +0000 Received: by finisterre.sirena.org.uk (Postfix, from userid 1000) id E219E440049; Fri, 24 May 2019 13:12:46 +0100 (BST) From: Mark Brown To: Axel Lin Cc: Eric Jeong , Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , Support Opensource Subject: Applied "regulator: slg51000: Constify slg51000_regl_ops and slg51000_switch_ops" to the regulator tree In-Reply-To: <20190524100247.7267-1-axel.lin@ingics.com> X-Patchwork-Hint: ignore Message-Id: <20190524121246.E219E440049@finisterre.sirena.org.uk> Date: Fri, 24 May 2019 13:12:46 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regulator: slg51000: Constify slg51000_regl_ops and slg51000_switch_ops has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 0a33d4feea748399c9341ff054c5f29c98393d35 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 24 May 2019 18:02:46 +0800 Subject: [PATCH] regulator: slg51000: Constify slg51000_regl_ops and slg51000_switch_ops These regulator_ops variables never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- drivers/regulator/slg51000-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/slg51000-regulator.c b/drivers/regulator/slg51000-regulator.c index 12e21d43030b..a06a18f220e0 100644 --- a/drivers/regulator/slg51000-regulator.c +++ b/drivers/regulator/slg51000-regulator.c @@ -183,7 +183,7 @@ static const struct regmap_config slg51000_regmap_config = { .volatile_table = &slg51000_volatile_table, }; -static struct regulator_ops slg51000_regl_ops = { +static const struct regulator_ops slg51000_regl_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = regulator_is_enabled_regmap, @@ -193,7 +193,7 @@ static struct regulator_ops slg51000_regl_ops = { .set_voltage_sel = regulator_set_voltage_sel_regmap, }; -static struct regulator_ops slg51000_switch_ops = { +static const struct regulator_ops slg51000_switch_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = regulator_is_enabled_regmap, -- 2.20.1