From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 83B053F12DE for ; Thu, 10 Sep 2026 10:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789037095; cv=none; b=rVCpyx5/pI2m4J0CTeLMM6tRIy8mbOsEVaGolwyoF2mQjcC92n9priS4OhwtNzcZupCcETVeLjt/D3jEQ3RhPIWOusa1Fe/f7jcrXX59sQNjb0+xLf5yzlLP/w9SWsCipMiFQFabU3BbJBTIgA0Z2bCSFk5XIpYy/pdREIZ3vuE= 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=Srg9rE6d; arc=none smtp.client-ip=209.85.221.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="Srg9rE6d" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-47ddf7b09e5so7936488f8f.1 for ; Thu, 10 Sep 2026 03:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1789037087; x=1789641887; darn=vger.kernel.org; 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=Srg9rE6dX+wVVkf6SvGPVArp3oarvGSSGQQXvK6ah06HmgcFnklEjw9OqRJHAvHkpe PQlYHjP1B3ZTh5sf9rSx6y98dNXbKsGgj0xeFXKryimS/gfdFAQ/Rx0U7/K5iIbgTwP7 +t43OD/xZzT9dvZJtreQUXyTITyGlaMt+FzgpNgECpvjKJ8U3Gp8MaSCNIdvWkbXNjPv vHc8jm+qFFuzkOO87rmWSO3dcTm6zI9pxKBPlTKAZFeDyT6lAfv0MkF+1x69eKbbU+GA rjhQjTBCHhHyR/FPF01lXu7k3NumVHz8SGJxxUl4arguRMQZ1LXOE/vmS2Ay/nGq6MVy lY2A== 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=G1JEuGzlLEThZo3i/4A7D6lfMFFzypjxkCT2ICPsx1Frc/1EzcxYrEwkUhUrT8dYY/ mD6cXNpVbvWQDqu4y7KtZOrZtKh0DEsAgiKVJCXi94A232fe+UWPByl63UUiy/VtAg/i mzw+zdBhtfKb1xJSjYqPCqlv/dFxSU8Tg2QcO0DP+pp340gC0kuGHgk3FJa2ftnXasGp 5SCtbNBC8BrNeSg7rBomWR9E4Co71a/PyHUcDm6C8iCkaNC4g/FNBHpANQeHpZJwXRBd kQZ3QlP1tjA25d4UizdM91aQVR4ROE0+fr8MkNWrDYUaQhe51qPB2uDZA2JtuPxN5lR6 2Tbg== X-Gm-Message-State: AFuF++nFR1LVtf1Ed0X27RsQPJQMCzzg1nBLBSSx0UjIGIPnem6KsdAl c+E1GuBdL1U8q6PCbc4XoGglTHrr2Be1OTaOz2MjkbWtBQo/6jH3KwwF7OrozAN4SKY= X-Gm-Gg: AYBFou2IuTbg1lwiZs2rrg0vZwj62Pg/ZYjVaJ4uya4sDOnP4G7bot9fONnylJLQhym nO+UxC+x0ISyRnT9634/8ycQG0uVy5gfDvec42IdOVjBEc0VTzoqI5ga/gqg3sFf2OXhflWchsu l3r9P/2D7vyP7BflRFS6s9djXGImiN/DD+AJOrlzk7UTUOcDJFugA+p7XMFXTT0AIU2G486Ql6U dcj5E2M4M1r1wNCv9DHL/KfWXdFl04cztNdVssoj0o6K0xphZ9GmTEXqE3CkJL2S5Z/9T7GLOcK CmbHQC3OND/cM1W+wcCsOtEd5SLiZIPwDQFx22dUtVd1GteSfGKXZ+Ht59dfe3oVBRz0YnzDHtq F187MZVFIgHfSKWb5FkoJ5vT5BmoMO0KyTpIRe8ls9MmYUVBx0GHM/WPisJfsWUHQ040Qt2yWTH 7tlhVMsFxbGWl3KLasnea+4dbBhVJ8IjX5JG+Pmdyibn8Fil3khNai4Z9xKAk9tEwV2m1BOPpx4 +pn/a+2U3/5AHqI8Y3aJ0M4Rq8f 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: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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", -- 2.53.0