Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1257861ybt; Sat, 11 Jul 2020 04:46:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVgGnLvudY8SbfsXrx6Biz9Jl1wbVRi/pT696iOF+P18XOMD+B9Q+5uDXChu2LH1xN+nQ7 X-Received: by 2002:aa7:ce91:: with SMTP id y17mr60804320edv.105.1594468000787; Sat, 11 Jul 2020 04:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594468000; cv=none; d=google.com; s=arc-20160816; b=ZMOaQSggpTOJkCjZZFAKQgbyGjZrRA95M9JRWUCVRRXLUtaH5TLZ7BZQlG0sHcMJaY VNGTb5fQUbaIYTSUjeCgejsV/mmyYa8R6GMDyJ/yEPBFl8ZyczmIEejm5C+cCo5pPlZF YDECT1TkiUkn4KeFRXB4BWmvKCmtUOadcWmFKk2yGNlpLCq9hFkuqauOTxBglqk+X0xQ xjSFG6GsXNCr2oBHh+3zEcZSmS6FXSJ0t+UIxaKj4XInfELP1Vp61pP2+hnMt+0egTNj DL0Q/Fh7x0SVCRcWHvwtF3D4Em+XBqfJ6TS8YnHfsg/SpVNJEbah3pboFbLunLtGhnXg sl+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=yaksYBcXaU35BrWyqrbVOlpaXmypFAxOvxS4CIm38Eo=; b=QesTQQdQRlsDPLNk5l1Gsse3tVP9Y3dkf4JEpBQmKgBSKZyeGXsmfy3IABl1JRse7t 2JRqpSrooafHKmS7iLRZBsZDZhcZaKWEm2KMWetJMVSqMbRinCow+RRfzyk8ndRHzF7L sydtQtph5QalwCaUbU+aZLxSX73v+9MpUCxpTogJ6k2yQVibcAx/sLmveTUPBWKl8N16 IeKfA4EvO/jz5eLDzfIr0BMhoQdoPeTE8UAS/WJO9IXxjbOfS7IB1IdKCVCejwpwhq4k CXtVxe3ppAYlzxpv7DU22xg/LfylBrMYAE28PyhhMDp699Wag70rLbTS1mDUtNOWOuvZ 6Yjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UgOzISgw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu27si5339252edb.542.2020.07.11.04.46.03; Sat, 11 Jul 2020 04:46:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UgOzISgw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726809AbgGKLoc (ORCPT + 99 others); Sat, 11 Jul 2020 07:44:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbgGKLoa (ORCPT ); Sat, 11 Jul 2020 07:44:30 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07326C08C5DD for ; Sat, 11 Jul 2020 04:44:30 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id 9so9291825ljv.5 for ; Sat, 11 Jul 2020 04:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yaksYBcXaU35BrWyqrbVOlpaXmypFAxOvxS4CIm38Eo=; b=UgOzISgwB+iq9LK3rjVylndJCiTmDXCP3ti/+oMkznveUyzcNPkkDtNYgNtk9LyPwr aL87zwaVWR1x2iEMa2lH/wXwJeLHqJxPgfcDFmSW29JF8/jQ+eHg9BcsbXT4KV/WBnCE XbWS8FW7jE3a1p3pOcrKUdTGf41rfhgyiul2xnEjCjlVTzq7n/FsJQMu1LzLvxX0TqPc NI3/ANM5whNYHJveeOobX2Ut+X3nkC5y+MlGjgvhKKZuI6z4QW/tVt3Ic2X6a7uNMWxe DhnctEzX2vz29ceNCKhXqnYgAgnJAHbPHIKNd4KnFiJhu8b7wzwCvw6JLeencoV/HnpV ADXQ== 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=yaksYBcXaU35BrWyqrbVOlpaXmypFAxOvxS4CIm38Eo=; b=OXLu5VGvqkVOCAaFUTlqnO1VE5f/KdJmktpQ3tQIgwBDKKpjXSRuF5i0j5AK61DKyq IH2CvmTVRsyde24KAl2necdyGbt1lPzVrksRlFt1rOkt1rgth1C6uHEQ/zKkjrI0s1b5 6KVj4gNzfJ/z8kn4rfLzoegzKhiHkIFDbjdz7TioAzao8yDOfY4u0Rj9zMosVftSnNqp j1ZZBYmjQPDekvNFdFOWMFuXFA7WP9ll/qHRUtvW7U8eFgQpzCueFBBFQILMZnurlyG/ 57VPvAHTgvr0slG2/MNGLCSfJwTaurm+xnHeSHFDpXoJ94H7rQ6MWJL+gRyw96ybxDTs 6fSA== X-Gm-Message-State: AOAM530+Vz8Pw2DlNoe4wnX9uBgpk2T4d++JeNl3SMag+y3AjV3gLCRl qxzoUMqyE87oq+4dPvYWl58= X-Received: by 2002:a2e:9dd6:: with SMTP id x22mr24354663ljj.199.1594467868560; Sat, 11 Jul 2020 04:44:28 -0700 (PDT) Received: from localhost.localdomain (h-98-128-228-147.NA.cust.bahnhof.se. [98.128.228.147]) by smtp.gmail.com with ESMTPSA id j25sm3080020lfh.95.2020.07.11.04.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2020 04:44:27 -0700 (PDT) From: Rikard Falkeborn Cc: pihsun@chromium.org, lgirdwood@gmail.com, broonie@kernel.org, bleung@chromium.org, enric.balletbo@collabora.com, groeck@chromium.org, linux-kernel@vger.kernel.org, Rikard Falkeborn Subject: [PATCH] regulator: cros-ec: Constify cros_ec_regulator_voltage_ops Date: Sat, 11 Jul 2020 13:44:09 +0200 Message-Id: <20200711114409.9911-1-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is never modified, so make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/regulator/cros-ec-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/cros-ec-regulator.c b/drivers/regulator/cros-ec-regulator.c index 35f97246bc48..eeed5aac3f32 100644 --- a/drivers/regulator/cros-ec-regulator.c +++ b/drivers/regulator/cros-ec-regulator.c @@ -142,7 +142,7 @@ static int cros_ec_regulator_set_voltage(struct regulator_dev *dev, int min_uV, sizeof(cmd), NULL, 0); } -static struct regulator_ops cros_ec_regulator_voltage_ops = { +static const struct regulator_ops cros_ec_regulator_voltage_ops = { .enable = cros_ec_regulator_enable, .disable = cros_ec_regulator_disable, .is_enabled = cros_ec_regulator_is_enabled, -- 2.27.0