Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp236176ybi; Fri, 24 May 2019 03:04:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwslk+EUD7hcYn0HtwsrR+f85HPDTe+QiWyMxc1q4GCJZpjzNJBO1yqM2nQKl8E53IvgYf9 X-Received: by 2002:a17:90a:1ac5:: with SMTP id p63mr8010044pjp.8.1558692285114; Fri, 24 May 2019 03:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558692285; cv=none; d=google.com; s=arc-20160816; b=HGBMMihUvIRSI3xFK7sNXmJNgyMtvFvSCJIO3I3lLQDoBBVV5CoI3ncjaAYz9WqLEb QUYRgjgGi/YewcI1R9GVFHS4Ak6ksk5ekgRVOhC4uw6V7y2u9F4ny5J53Q+zok1sYpjx +K52XWJOQ75kRz6UhGlrVDbgl74GHWErJsGWSgijQHrgaAAQnZzM3eSWPVZ4JAPeiLdW TAuqcgQY7IvnENkhOYTyUuaiIQM/m4PytHX9BW7vzX/ovTRmkiRjwmkIER/BXV/jFw0S ry+3cIti+JsuQu+PS/PBePZtWN+AekytlBSoAxP1hcr8xpBhNhhKLCm7z7yTgDR69P0E 2YJw== 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=ILSd7AgcVrNYTTK5AHOpXVLYnP4TZd4ozyOxxgxmapM=; b=SDyKJSRcuFOR6rY2XhJR9Soi6lkVITUq1ljT4rxUrehVvODZoW9i5AMvt0niU/XEFn Gtlxaio8ICNEauOQ5GqAXiRZrXX18JT7qsU/qTMEHh5XyxBi3icFU3MgqXBI0jIIijK9 yZQoPtXl770SI122njq4/jEe3B4dKVJ4FVT2LrHCnY1CYfjey9hYbVVkETX5aJjCWRbf p4aPTOPiWXpucv7h/ApS/Sad4rzd0VRtQcsLEXfBxCGpLi5a0IPP1AdLoE0TJrw93uHh GJQXXlFaX39qRzJ1u/tE46PI2F2Dc7isAvJXn07QEa4ftF/vwdRXE/G09qW79pbYfgPc nBWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=kNyOIgAx; 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 74si3114769pga.291.2019.05.24.03.04.27; Fri, 24 May 2019 03:04:45 -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=kNyOIgAx; 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 S2390242AbfEXKDL (ORCPT + 99 others); Fri, 24 May 2019 06:03:11 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44702 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389745AbfEXKDK (ORCPT ); Fri, 24 May 2019 06:03:10 -0400 Received: by mail-pf1-f195.google.com with SMTP id g9so5030626pfo.11 for ; Fri, 24 May 2019 03:03:10 -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=ILSd7AgcVrNYTTK5AHOpXVLYnP4TZd4ozyOxxgxmapM=; b=kNyOIgAxXJ0x85UofLxl3r2+HjVJ24lHpmR5PW3aj/ztUsV44QAiF4i9YTRi1MWDFG e5U7KfJsRIMoWC9iaBblFqCTFEtScuOSO3lQwl9JBqbCNOBZBn/qz/etvfeiYd1w7Kgi J1+bvycjt8kBAUb6W7WQd5KpkzWhojj7Zo6T1ccZlD1SB2byLwQiyiBNQ14VYRsMWaK1 4BVDpCNBspAw+HV1R9rmsEvbuVj1PbK0/WYLmhYwD93arpmexfuqNoNOsDN3MwHdEwNy tK8MidoA3bQivQ1yG/fkOBotJoW8XuLQGHyVEPedlEjguAZ4RdWXyIklCNgOr8rK+RDd KJdA== 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=ILSd7AgcVrNYTTK5AHOpXVLYnP4TZd4ozyOxxgxmapM=; b=Zi2jFYdfjNvAluhXOduVgvHtcgiLN0jOdO2MM3/vngwCF8r+nTvKAlClGePj+4SanY S0A2mB8dIx2nl3aoyEKvsADkX12oxvNhT1Nxtkzu4+FxZBreqA6HeFOwZh4PkvPplAcp qf0z5iQJvhoN9XGC6dtV1p2gWeSdM0py1ffn1zjQgZ4bsRpBxILf+nFFhSOjg8YB9dnb WDiJ4GEhKEZ/7zKDdI3/6AHHJVZuK/GgPEYDDN07JSp2SNkcb++gtj3kncTyZSKXNI9w jlWvdaCcrjV0EVPU3dlqGl/kGShRXtibn81JPzAz1MSB3gAPQl0dz9DkmSYXpITY7Nhl aO0Q== X-Gm-Message-State: APjAAAXAnFu0bFrh0MxCNeQ2+6zxNo18x1HehSOtyL8An+OyILjesPgX sZyVU9fzajS2jNaqa/yFWrv9Mw== X-Received: by 2002:a63:1950:: with SMTP id 16mr8254067pgz.205.1558692189719; Fri, 24 May 2019 03:03:09 -0700 (PDT) Received: from localhost.localdomain (36-239-208-165.dynamic-ip.hinet.net. [36.239.208.165]) by smtp.gmail.com with ESMTPSA id f29sm3126700pfq.11.2019.05.24.03.03.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 03:03:08 -0700 (PDT) From: Axel Lin To: Mark Brown Cc: Eric Jeong , Support Opensource , Liam Girdwood , linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH 1/2] regulator: slg51000: Constify slg51000_regl_ops and slg51000_switch_ops Date: Fri, 24 May 2019 18:02:46 +0800 Message-Id: <20190524100247.7267-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/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