Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5010462ybp; Mon, 7 Oct 2019 18:07:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjGfhzjhv5jOKGAUrmFpgVVhHjGvCE29K/jYZMOoUnZU7oXzfHMAvSnGYNdC3fxVPZ4c7F X-Received: by 2002:a50:eb8b:: with SMTP id y11mr30807113edr.200.1570496830988; Mon, 07 Oct 2019 18:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570496830; cv=none; d=google.com; s=arc-20160816; b=PcRmpJX1jfG+V4sAyFQ/IdqUfTlEykQvh3FfLPzsKhMW6x05KdWrmRjCTfns7+v8bH ivnTnYI3S7Uu8woiQ1T7qSwhg3otm4MGmzNb4/8gjUXMcHc2HQTWQjPIHV/nWf+39+F3 3LgIXclu1QZ9hzsxYAkpQCZK4W6jMANi2/iRPRHc9Ca8IB7nmJAQvhcR1OTtLruXTFqo H3Bfc5znmB7Qvc1wCAA6g5mpaTz+t4V86jEg45Izsy3EBe8XaB0TuMJv9T4sIeTSm2Gm HnC0HGjMayVh/Mll/ALNydszO5OIGnm9yXWn1mkyicnxZBBx8VDaM1YlrCJz0pD0KpKH dKVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eKgtCIbZPMsJhjG/EViFF25V+bEhzuRO63sJkz7mdtY=; b=axnzSBPZmyU782Zwe26nrdL0CSQekFScbXJJ4cpkAKT8ZLkyrn/iPbGsMw0E15b5c/ rY7KzXkj6/MJtRCU2DVpdAeZaXDBLgi6nvfVottbaTKO1SMdBtlsd+FjBjOCWfL4Ns1S 0gv4kg6hY/EnoMv/Yq1tBe/Qe+wbNOec3auWy4n3+DZiVHKlEZ9da3zkAP79NRE36f4O eB7AHtRyHt09Pq9cQd+aMN8U5DUWZSbGCVioaVgKGtt+boH0H56Z3Yt8n84zQKW7E0Dl 6cYmf0ftQDWwIxTiX4Pshx4zd1zA3sX6nw1ehu2NAQn1YmHgsDyY+B0ObB7UuNaM7JG6 rjxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=JNZPUt6j; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6si2925523edx.85.2019.10.07.18.06.47; Mon, 07 Oct 2019 18:07:10 -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=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=JNZPUt6j; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729412AbfJHBGj (ORCPT + 99 others); Mon, 7 Oct 2019 21:06:39 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39321 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729212AbfJHBGi (ORCPT ); Mon, 7 Oct 2019 21:06:38 -0400 Received: by mail-pg1-f196.google.com with SMTP id e1so9270174pgj.6 for ; Mon, 07 Oct 2019 18:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eKgtCIbZPMsJhjG/EViFF25V+bEhzuRO63sJkz7mdtY=; b=JNZPUt6joXunnB+3n1aWRxxtV/fwxR0rciCRbApd9CHBW67bq0nRBC8Iv6W3FQBCiT 0vTJuzVgjoaUR7x8b0CvG5tfr223cs0PTiP0jfH4X7BhUDY2baSK02LgKVU76O7S7AKh WEsLmdNM4dpu8qzpL7SVX0NHm3UJSx8NzZh+sL1wmC2ZJHoApoTskW9PIcqXC/A3yoln WckgcWnyHewuOMmVdAybP1N4jfZ7zOGUev4MXnA7eJyvH9KCuVDoSFtMUoHl7MAXnk2x 4/SzWbkukKWuTU1BTxviaUgoWgg2p4nCU+BU4uAtVjlpP2hAt5reSFpwOMy9CC8fSJ4F T6aQ== 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:mime-version :content-transfer-encoding; bh=eKgtCIbZPMsJhjG/EViFF25V+bEhzuRO63sJkz7mdtY=; b=GCLmhW8wmVTXKscW/ZHWFaVRHUEcCmp5jYlLZ6NvAfMTU6q9UH2FrACiF7ag2bVOND 5RpYwcwS5Tv9EhiZS9t1JzVVgiHGZKPj+v9kXT2MqGJl0EqdCtMbDScVRDGCnPfECwTn z4Hvl9dRDDjO5Xkmy6JTL46f/okyvvCgrHVcNE3EzZPBdqDeglUvppMS1sHJ9uXAtTMf 8jjWv52vkhB5JjKxWPL7389c1DXyY3O2ZQblQrsj9RxeTwPZ+R/btEuMcBsy+wHdY1vh AiVVvLgEaFqLx4pU884z+YXWhfqs/dpbH2a4rQpnxIfZ/bOojY6Kj5vlnkv7yPb2wu/a ZDEg== X-Gm-Message-State: APjAAAW1NEgJ0UYeRYGNunvOuzwpm9CNabB2yagIDPVGWQiZ3WsZ2xnl 2idwBXcqxVNTWSaZCPf+NC+Cdw== X-Received: by 2002:a63:e549:: with SMTP id z9mr32746365pgj.67.1570496797659; Mon, 07 Oct 2019 18:06:37 -0700 (PDT) Received: from localhost.localdomain (122-117-179-2.HINET-IP.hinet.net. [122.117.179.2]) by smtp.gmail.com with ESMTPSA id 18sm15563898pfp.100.2019.10.07.18.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 18:06:36 -0700 (PDT) From: Axel Lin To: Mark Brown Cc: Heiko Stuebner , Tony Xie , Liam Girdwood , linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH 1/3] regulator: rk808: Constify rk817 regulator_ops Date: Tue, 8 Oct 2019 09:06:26 +0800 Message-Id: <20191008010628.8513-1-axel.lin@ingics.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These regulator_ops variables never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/rk808-regulator.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index 61bd5ef0806c..eda056fce65f 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -686,7 +686,7 @@ static const struct regulator_linear_range rk805_buck_1_2_voltage_ranges[] = { REGULATOR_LINEAR_RANGE(2300000, 63, 63, 0), }; -static struct regulator_ops rk809_buck5_ops_range = { +static const struct regulator_ops rk809_buck5_ops_range = { .list_voltage = regulator_list_voltage_linear_range, .map_voltage = regulator_map_voltage_linear_range, .get_voltage_sel = regulator_get_voltage_sel_regmap, @@ -700,7 +700,7 @@ static struct regulator_ops rk809_buck5_ops_range = { .set_suspend_disable = rk817_set_suspend_disable, }; -static struct regulator_ops rk817_reg_ops = { +static const struct regulator_ops rk817_reg_ops = { .list_voltage = regulator_list_voltage_linear, .map_voltage = regulator_map_voltage_linear, .get_voltage_sel = regulator_get_voltage_sel_regmap, @@ -713,7 +713,7 @@ static struct regulator_ops rk817_reg_ops = { .set_suspend_disable = rk817_set_suspend_disable, }; -static struct regulator_ops rk817_boost_ops = { +static const struct regulator_ops rk817_boost_ops = { .list_voltage = regulator_list_voltage_linear, .map_voltage = regulator_map_voltage_linear, .get_voltage_sel = regulator_get_voltage_sel_regmap, @@ -725,7 +725,7 @@ static struct regulator_ops rk817_boost_ops = { .set_suspend_disable = rk817_set_suspend_disable, }; -static struct regulator_ops rk817_buck_ops_range = { +static const struct regulator_ops rk817_buck_ops_range = { .list_voltage = regulator_list_voltage_linear_range, .map_voltage = regulator_map_voltage_linear_range, .get_voltage_sel = regulator_get_voltage_sel_regmap, @@ -743,7 +743,7 @@ static struct regulator_ops rk817_buck_ops_range = { .set_suspend_disable = rk817_set_suspend_disable, }; -static struct regulator_ops rk817_switch_ops = { +static const struct regulator_ops rk817_switch_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = rk8xx_is_enabled_wmsk_regmap, -- 2.20.1