Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp130481lqp; Sat, 8 Jun 2024 08:59:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURkyDqqltZewUbfKIt55hBdg7DM10c8lvAE4vWqLF/yxEK0EKRJlCIeXJQUmJcUVLBgI0VZqvK5F0KTz1noj+0QBD+fg2zWYTiuYfq6w== X-Google-Smtp-Source: AGHT+IEkcQKL9mh4IK6TpUE+ICa2/Vdkk1r5sKpEJftwmGx/Jn0x9RjBK49Si8fiRCdgTJDzA3/O X-Received: by 2002:a05:6830:18e7:b0:6f1:2ff3:5abb with SMTP id 46e09a7af769-6f9571e42d8mr5846854a34.5.1717862356525; Sat, 08 Jun 2024 08:59:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717862356; cv=pass; d=google.com; s=arc-20160816; b=KBS/nMy/IwS0yOydnxqzI5sJAE63jiEyiLqfm6gmektOVZcZhWZgakfgPJHxD82KXZ DwDnWRKTBwAk2gHNDo3HVL/BdsHQZh11sYrdWVthVL7sYa2QH+v6Sd91DHYdWUumCQY6 XA8BiMe8z6kCDGydPn0nEZngd5ZF3CatNKiZolRy+UkzHYB10kWKrf2yw3TGnbNKdYdH X9d66O7Ey8nDC8dHnM9q51OzK+m6Bxa2eYuWY7Cg72OOpFB1If2OdPHYBQEAUakwJQgk PmZWZw5akL/+2CKVuJG7r4gPn8HrGjRrhePH1/obfYN6KS3p6/Cas21kb7pyqyuMnlx6 Ba5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tjWimnfC9PvusIEdgiAH1x2XlTdegf6SCBHQkpwWvNI=; fh=QhgSg1Zbhg0k1Y3sexI0DeQQQskTWRSzxoSuuRe9W3s=; b=pGNt7ngHsY8pfsgsrm5Pu9/c3qho+uLu/y7nUp/iK0nzo9zVAqNv8zMobxH9iCStWX GrIUOvD1WR40qlS2wJDrwOJwLN3PdWher59ccWohr6wZfx3IWXk0k+Xrk3xKQNfqJXGC RqukEm33vD3BQri8Ro9SElkWLhCRgo/nTb2kEuXL06IW0q2fsMuKD1K0AN1WIpxHgz10 V6NYDksMYxNH4xesI7QQs1lwwmYcTDzVVxtINUG9KpFHiaFDpSRYBPds5hSbLL+v2B2z gI30ptjpeZr2Qees4ZTzkS7XuTG+EY90z9IpUz6MulhgEujdDcnYddiEpaf2YO9ISCA7 ew/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RknpwIy9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7953335a456si562661385a.625.2024.06.08.08.59.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 08:59:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RknpwIy9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3EE201C2178B for ; Sat, 8 Jun 2024 15:59:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 425AE17D88B; Sat, 8 Jun 2024 15:57:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RknpwIy9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62A7A17B4E9; Sat, 8 Jun 2024 15:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717862241; cv=none; b=IZxQwa5iF5REz7CaD/r8dk7gLvlX2jagWo48onyzcb9uIibYflcsfbQOLOKCSlY6uFo6+UoOKJti1CMKLwc2OMkeYz8mZBn+R1UXkpq+vKbMGeHHemd86Lsxl/i5cslRKnp7/Tn43nnDu2rN/Evu17mpHGXhZnWPiwG+S/71q/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717862241; c=relaxed/simple; bh=xvGDdXmPugW8gDTyzx+vdea6PEvo7eNqJuG1wNKxm9w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J8JomugPqJ3ldyXIFKVhbcdPhf00cs62BxwUH0RARJJd6qcAvOlX55+FM4jtLQIhQmKDAzkmP7zTFyxCg0J54jT/nYqYpVCLukRTATmTJCIY7cYmteKR8dbbZlJ0LN0/k+2VBU1r1VcCEQf4TkwDj7DUHF8tLMC/kzggpJocC9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RknpwIy9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A875C4AF0B; Sat, 8 Jun 2024 15:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717862240; bh=xvGDdXmPugW8gDTyzx+vdea6PEvo7eNqJuG1wNKxm9w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RknpwIy9ywVh90i88yY6pRVCslHbAesaWxPMnrgDzPLtlgW0R1fn+mZemOpQeeQyY ZGJuMOlRpPjbI1SlH53KxEhjEPUtns8Ot2aWJ8A2JrPT8slHverQH9mmael1hP1YDQ xHsJpL6LPCsKBapD+6ZzIIcrCslWznX5XFgF2T65F45i/jWG1wTjDfzDeKF6s/YKmH LYXkqhjEznA7lYn/FTSrrp5kvHur62r7iTCEoL9qZeegR66OhCFmGfj+XaB6PYAT47 UeV4amShsexMNg2h/Q+s6tr3+QhaF2XeM6wFPW2tdc78ncHUQi6uaSA36K3yw3lRGB 0u5bRkq207aUQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sFyRT-000000003Pz-3Rt2; Sat, 08 Jun 2024 17:57:19 +0200 From: Johan Hovold To: Lee Jones , Mark Brown , Bjorn Andersson Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Liam Girdwood , Das Srinagesh , Satya Priya Kakitapalli , Linus Walleij , Stephen Boyd , Bryan O'Donoghue , Andy Shevchenko , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v3 04/12] mfd: pm8008: Mark regmap structures as const Date: Sat, 8 Jun 2024 17:55:18 +0200 Message-ID: <20240608155526.12996-5-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.1 In-Reply-To: <20240608155526.12996-1-johan+linaro@kernel.org> References: <20240608155526.12996-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The regmap irq chip structures can be const so mark them as such. Reviewed-by: Bryan O'Donoghue Reviewed-by: Stephen Boyd Signed-off-by: Johan Hovold --- drivers/mfd/qcom-pm8008.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/qcom-pm8008.c b/drivers/mfd/qcom-pm8008.c index 5a77155a63d7..ab55d524c27b 100644 --- a/drivers/mfd/qcom-pm8008.c +++ b/drivers/mfd/qcom-pm8008.c @@ -51,7 +51,7 @@ enum { POLARITY_LO_INDEX, }; -static unsigned int pm8008_config_regs[] = { +static const unsigned int pm8008_config_regs[] = { INT_SET_TYPE_OFFSET, INT_POL_HIGH_OFFSET, INT_POL_LOW_OFFSET, @@ -129,7 +129,7 @@ static int pm8008_set_type_config(unsigned int **buf, unsigned int type, return 0; } -static struct regmap_irq_chip pm8008_irq_chip = { +static const struct regmap_irq_chip pm8008_irq_chip = { .name = "pm8008_irq", .main_status = I2C_INTR_STATUS_BASE, .num_main_regs = 1, -- 2.44.1