From patchwork Thu Sep 10 10:44:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 3268 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mxe881.netcup.net (Postfix) with ESMTPS id D642E1C2C08 for ; Thu, 10 Sep 2026 12:57:47 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=baylibre.com; spf=pass (sender IP is 104.64.211.4) smtp.mailfrom=linux-sunxi+bounces-25786-noreply=patchwork.local@lists.linux.dev smtp.helo=sin.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 104.64.211.4 as permitted sender) client-ip=104.64.211.4; envelope-from=linux-sunxi+bounces-25786-noreply=patchwork.local@lists.linux.dev; helo=sin.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id B770E34AFB for ; Thu, 10 Sep 2026 10:45:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47C1245D5D9; Thu, 10 Sep 2026 10:44:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="Z0o4bIk7" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60C2E29CB52 for ; Thu, 10 Sep 2026 10:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789037095; cv=none; b=fmX5bI4ocU4KtVjuY4pr2wXyLDOmpcl9d0NKYfb5reY7hOLp72pmgYZX20KdgDcOo6v3goNK5mv52ceCJUAzLDjebc1rwyWzugqUxKi1Px4SCMzPRYk4fUyY3md+ir7UZBgaVQxgl8kGph/OFaVsEiOmi4Ckkn9jIbT+CdzCiRQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789037095; c=relaxed/simple; bh=6WS2gG4eQGvXIRMEkRovIFW0AaWwhRZ2tj+ICuFq6Q8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eVHwPBZNCho4MsWp7HCWaEx6BxmYgEmaDxLiXgKybVje+pOYUMhMyYkMLeXR2m9Z59ZyY1CF5pNdA8hmlwtrrjW6Z/d/XtCtHxDfv5IrWpY6fJBKtkp8GdWnMv+/soVMmasMX5GnT8pn4rS6Kur4YNCnIMXhs0scUsDp7Vc0x70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=Z0o4bIk7; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-4858303de5dso8106702f8f.2 for ; Thu, 10 Sep 2026 03:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1789037087; x=1789641887; darn=lists.linux.dev; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=eC2Iu7WVN9Kv8E55jimB5I9lAFW6apWINO+cxwm+DSo=; b=Z0o4bIk7fZTF4XxagPFXDT9HsWqd7vtTqrNBdLlNS3ZvMNHToV19dMx31BDTNDDj65 Lb5iOoY74xvmGv2Sngpv6Y2JYntbrjcPAcO39AkMll/nVYFDpgaRET0zenzlTUMTdBhO pXfhaZw8+wBth2SLOMgoK+UrJ8S+HXaRUf4+hgTaqkGeV3Hhd9yIuJbYFWsMpIdoRbDG TtYtEGJZAJdx8LeTh3NSKVlmk0Z5qodQXXkOT4C7i2i2xNiF/mddeKvH77D5eLccNrYv jj7iG3Le7o8qwfZm/uxyg7/HvYGYrenzzt8F+1jayEzQs1PZ8AlVXnoPxs1bVAbwtntZ qLvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789037087; x=1789641887; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=eC2Iu7WVN9Kv8E55jimB5I9lAFW6apWINO+cxwm+DSo=; b=YGTcpotbOht0AfDHeUHuubF5WB1dZOj4bhhnBpgQue3vo2SQMbfw8/o4AyZ78hTNZ2 49fn4lTYkqKi2+p/gZhC/ZrKWjiND+HdFpBPDj0bx1XqJATx4t/Qe6SrHQXEctrvL5A6 CgdPpqOKlgzNvM7nI8xd+KaeZ/1P7RkjpjRRD2piLjEX0sONwRPvxccF5DsaNadVxwiO Pfp3C4e/5kxQWqGptyTlFkdkOxGqoIua2FM4uYFtSjr9HBsIj/SNtAKFtd/g4Mw5hO2l h1hN7b2obcbXDFC6DF2ysYKVMdMZ4+1Vv6JQR9am9LWdaxYAagP4vwYQRVQJoOJYNWwG 0pHg== X-Forwarded-Encrypted: i=1; AKwUvBz6ILGWJywkGJspjQXc+M87ReCzHZnb7SmBZ6HVmQvkDQJhMp4DXCEAM8Z++liSPiAznnxda5drGhJbUg==@lists.linux.dev X-Gm-Message-State: AFuF++nZdcrsaj9KBKRH/1MmrVuz8BSp+R0xX0L4H15O/TEJ9swg1SvH qw4T/RMZ4sXta4JliqGasu/Ntyxt8h9MFmy0IpUN2Sk/uhm/Yyovfbi4VRJ2bNg3qhkqOps72Ve 1QGBqJRw= X-Gm-Gg: AYBFou335/tDs60AQREH/B4ZC+uQ7oJwKBAHo3iJx0PlVLaHRjVuEIZrKpNHKVLbE9p 6dYzHvpqi8qTVNqGHgs8sPEs1eiTJoOh6WPnFassVApFEDGkE+vC50xNvg6uFCyCFE12ovAjeVu 0f8asKRvt4JsV+VljyoZn1Y6FGZfkSkw3wRXcJvndw81vd7eM6uGsGxc0iJ7BrEBr/+VA5pGY5r v0cMIPawoPyc9KAP84yGIZDViKG1/VlrIf69pskC65t0wgyqdiTUaTohh11L+b3H6tHsNmbpzof CKtShA0i167nVEre8oWTTsh+HvMKhqLbKs8JIPJQZW7zQvUceKABX8m839G6ySyWeKC9yYyjZsU nCnNzG07p1KnrjtrZmEahTF/FSsnvN8Vax85c069sJluI8y2NK3Ag1uHMUZHCjbR0nVeXMikSKS ze5mHSBwMyNW+yMr2rAO/YnRKVXhBJ9L+r+q1AIHCHY59qRLUYyfhzgNmspSr4EcceqbYH5Vk8G FOJqZFunmXsQfk7xG1/9h2iMY8c X-Received: by 2002:a05:6000:4208:b0:485:b14f:ec4a with SMTP id ffacd0b85a97d-485b14fed77mr7249343f8f.31.1789037087270; Thu, 10 Sep 2026 03:44:47 -0700 (PDT) Received: from localhost (82-67-6-57.subs.proxad.net. [82.67.6.57]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-485883a9234sm49704577f8f.14.2026.09.10.03.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 03:44:46 -0700 (PDT) From: Jerome Brunet Date: Thu, 10 Sep 2026 12:44:35 +0200 Subject: [PATCH v8 1/5] mfd: axp20x: Constify axp313 and axp717 cells Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260910-axp318-regulator-v8-1-e906a61a7f3d@baylibre.com> References: <20260910-axp318-regulator-v8-0-e906a61a7f3d@baylibre.com> In-Reply-To: <20260910-axp318-regulator-v8-0-e906a61a7f3d@baylibre.com> To: Andre Przywara , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Liam Girdwood , Mark Brown , Hans de Goede Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mfd@lists.linux.dev, linux-sunxi@lists.linux.dev, Jerome Brunet X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1161; i=jbrunet@baylibre.com; h=from:subject:message-id; bh=6WS2gG4eQGvXIRMEkRovIFW0AaWwhRZ2tj+ICuFq6Q8=; b=owEBbQKS/ZANAwAKAeb8Dxw38tqFAcsmYgBqoooW3XYdrGA3KXtzcIR+JsuUVh9ymx6dcnVt/ 3lMv7hoH7qJAjMEAAEKAB0WIQT04VmuGPP1bV8btxvm/A8cN/LahQUCaqKKFgAKCRDm/A8cN/La hT/nEACAUvPFNOyTux9/TqLqgaGtiABfBVtMqJII4GxR7MUjAI9HuWXyDKHYmwU/DD80jc0vNYR +TNIfEDACQsGNbmw2OEbBnHMcHJy1LRHRwYerIeV6Kf6mdqADJBGE1vZ/VmrHJGc7hU/5djRNJc 3WT7Q83Vaqp+dlI/0Jayk+vn/z/j9TyRZj06rnoFJx5kkCo2hhP7Wf5PDTdsuoUfpao6RX1kUX3 0sC+iYR86a5aL5PX5/xfWV3qlmJKfNI21T959srQs8/QAKVDUEV/K97fkidL0ugo5v3+ZQnI4ga /h5395TZEY0INuitubtV4wt7v91lK7l3hBHju/XpYngXuKZa03tSQGWr0uNi01Y08KL2SnP1pz8 LdXKx1fo1zx0ocRbDue1nPnylVFyODT6EPJ0ntiJWtJ22h6IoguCeed+29FsoXHVBWstGAqRFYS M/hE8JjHeDf1y5SXu2AyMo/y8ElK4Q7G2/7cASfl+4oYT8QTnJGHzXuH61vf973ugr6A3iFVqdQ 1a1F0Usdjf49WBJIEdP36gou6wA0hxkmPVHZzvn85B6jRA0afDjITcYnLLiYZ0e9vVNQJq4Ne4E 4FWxx8ED7tr57+avcAz3HzFUQJ0/Ljh1yMtYjRQdrw1WyQvgLMxKTJ59E492NQmSYCaZ1l611bs ySxSuvDzhQB9fzg== X-Developer-Key: i=jbrunet@baylibre.com; a=openpgp; fpr=F29F26CF27BAE1A9719AE6BDC3C92AAF3E60AED9 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= mfd_cells array should generally be const and there does not seem to be anything against it for the axp313 and axp717. Constify the mfd_cells array for the axp313 and axp717 to be consistent with the other supported chips Acked-by: Chen-Yu Tsai Signed-off-by: Jerome Brunet --- drivers/mfd/axp20x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 50df66de24e0..4d770e718716 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -1055,13 +1055,13 @@ static const struct mfd_cell axp152_cells[] = { }, }; -static struct mfd_cell axp313a_cells[] = { +static const struct mfd_cell axp313a_cells[] = { /* AXP323 is sometimes paired with AXP717 as sub-PMIC */ MFD_CELL_BASIC("axp20x-regulator", NULL, NULL, 0, 1), MFD_CELL_RES("axp313a-pek", axp313a_pek_resources), }; -static struct mfd_cell axp717_cells[] = { +static const struct mfd_cell axp717_cells[] = { MFD_CELL_NAME("axp20x-regulator"), MFD_CELL_RES("axp20x-pek", axp717_pek_resources), MFD_CELL_OF("axp717-adc",