From patchwork Mon Sep 9 13:51:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13797112 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 683FFECE57A for ; Mon, 9 Sep 2024 13:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xIf1wAbIzj4CuxkxfofvazjN5/qDj/bgJx/cWPTX0TU=; b=cEGddvAUSgr53/ WTKQs/e0wyXWx+CDUoY/B8mDtil9doNuda3d/FJtMpQeW3SsKu26o9bpZFU6lkJ/EMwK0QJIeZWqV fZG6VmyC7CN2acoz28uxH6zkYksWWG4Bq7Jr4VhaKuLKunD8A3P9iFg3A32wgjmeD2KxyRFZQHyDc eLonnovqkKuU08JrwP5hCgGYc2HvmcKQJtU2Ne1inULHEGtt56rCtRbpQMUc3ArIhXh5rnpm6O9pc lh5X5ynVLTWZ20LTHUQ8eWuoETOd+zMPWsera/AyEv88aHeE0RrL4yOkQvp0Qzo2DenoyQevNAzq9 fFLWOWoeijcwMmKaLzrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snept-000000029FC-2ct6; Mon, 09 Sep 2024 13:53:45 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snenr-000000028Vz-2cqJ for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 13:51:41 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a8713b00219so23250966b.0 for ; Mon, 09 Sep 2024 06:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725889898; x=1726494698; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=xIf1wAbIzj4CuxkxfofvazjN5/qDj/bgJx/cWPTX0TU=; b=kUW+KFWNHwjznTn/4Qpgf+UTdf5+1vs3vVLpfS8cQQFj9kmN+a8p6Zw6By4olPyk+y Wqe7wR1TZfuhg1q7PzZkcbwW8JfeCu7lzDN1go81YjuXImO4fYSbBPN3disH8nncDfUn Q8Fc7onaNkDKNswYTeTtw8J0erH/79tRrMtlpdiWaSQAEHGUEXHD2jyGnhv8N/Meskd3 H8smNhjTUaxHounS9JRHbQqY1krtsSN7mufX/3oF6nKSaMyQfu7rWy02CleFxmvzGUU6 jIU3+JD9qR3o2T3YOnQBqYXW+6XeHBdAj8q4WWzq327afcjMrF/Iw+BRvcnV2NkWr8qX m3Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725889898; x=1726494698; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xIf1wAbIzj4CuxkxfofvazjN5/qDj/bgJx/cWPTX0TU=; b=nVDdSRzWV7iQ+0RMOOcvOFUgBdkDIyzDcub6RFKXzD2ms57wpBTPHf9wdZyvdEQECl MJvjN0CIbz1QRTopDXEfEc81Kjyg9dz7iQB4FN0pQKVouYdNQQIK08+qx8MlPx+pZZwv woIxs7x6g0iU7H+T+P0R/rAqJnJsCM/INpTUZ5CnvdcEr6na/ue/m3wbRTncszg2/Yfu zMOvoNHCsFNIhXV6BNK4J2BAVRebvDKRuY95xX76iYc5xRKZ1GQRahYGgCfiyq5yI/Uo P/6Tlxot0f9bZDGrdUxZ9qNvXxPGkvDu+H7GgNL/I4fYDQIr2uPehfwblyGrSP+6pnwE /FNw== X-Forwarded-Encrypted: i=1; AJvYcCXkPzCkiJY++zGMmUCUiff2tuAIdbYbKfvpChIsEJvj5JmxANOUMXm+vrAPphljDM4U8vLcm414AswsPnzPoHtg@lists.infradead.org X-Gm-Message-State: AOJu0YyJrCJk104MXVVGCtoJeSibrV9Z76pn4g8X0e/lllAKfAgYXZgI 3qXGWh4ppI2dzOxXXkD5o+j1TvEirpvyGBSrAzSoA0F+DK5/UG+TyT1PGb+W56Q= X-Google-Smtp-Source: AGHT+IF9Mh+MgE0b3Jf7kgDpkQxsvludlLfJmIJC1bDwVRLgk1OMrtfUfpR0kKiqTATr3BREdjGX6A== X-Received: by 2002:a17:906:c148:b0:a86:a4cf:a197 with SMTP id a640c23a62f3a-a8a887fcbe0mr296077966b.5.1725889897492; Mon, 09 Sep 2024 06:51:37 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25cf3ad6sm345344566b.148.2024.09.09.06.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 06:51:37 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH 00/17] regulator: Few constifications of static data Date: Mon, 09 Sep 2024 15:51:11 +0200 Message-Id: <20240909-regulator-const-v1-0-8934704a5787@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAE/93mYC/x3MMQqAMAxA0atIZgOxVESvIg5aowaklVRFkN7d4 viG/1+IrMIRuuIF5VuiBJ9RlQW4bfQro8zZYMhYaqlF5fXaxzMouuDjiVNDszPG1jQR5OpQXuT 5j/2Q0gf6uJlQYQAAAA== To: Support Opensource , Liam Girdwood , Mark Brown , Matthias Brugger , AngeloGioacchino Del Regno , Bartosz Golaszewski Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2263; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=zUHhg/UyzRf/dZcnGmfWPB4ecX+Ntlv/UdMU1qsMFhE=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBm3v1VgRQNlylPub6yNjTD+zg1dZZuybYlU3O5P dYuhnlzbSCJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZt79VQAKCRDBN2bmhouD 18H6EACQOmd1uI3uaTvI5UKYLHpsmpK02EBrdx7JfUDu7mYQKIwkyaQ7/NZTXgYa3NeSubtpWqS CYbu3d4cN9X5LRMnP/JfMWvN5nPjCJ9yezEZ1IlOJtorpsV4QDmQzpx7jhK4TVWVOT3H2EFdHf+ Qhsg7Ra3zq3eQbpakhFmlWTVpiCXjAQ8ewaszVTwD2mhmqP8rn8IQCPWY0GBz1/zrFdwRMUSc1N VDt/txtsgO+LhT06oBFGSgqoMmEc+hzbAHhKWP/lqErty136Vq+GXJqRfmFwtbIDq/W6PI9lVj9 LrZGJI/T7x7FhrH5V2t2MvvXERnKJMd1yscboisw+JYX/L6PMT0uqXRxF2Oiok92GZXua7D3gpQ KG/LN6HH0YYWc+KVxGaikAADasjgiO10L9qOwEONgUsBx8z44TncZMgPRAqUuuadqj91gi448lM xC2+L5ablOxm7cUiGaKaPgeSaZQK7MtJPbpuBhFq7jDN3It20DFo90EF0+qwO8a+S3Y0jLfYnuX lLJASJvsh5c7KTi54zRhQY5H6elWKfnkvjsM6jtWVrI/DbJSF/wsoIke4n0rYXEDmg1UG+7NU7t WQLd1Dr6580QziSbr9Z1VjK64AdhO5rmijvUVs3Bc6dwmjGCb1No0vYDv664QDCk8T0v5mVFnt2 wSjVdO9X45kDo+A== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_065139_740181_3E1B44BE X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Few cleanups (safer code), built tested. Last two patches should probably be tested. Best regards, Krzysztof --- Krzysztof Kozlowski (17): regulator: da9052: Constify static data regulator: da9055: Constify static data regulator: da9063: Constify static data regulator: da9121: Constify static data regulator: da9211: Constify static data regulator: hi6421: Constify static data regulator: hi6421v600: Constify static data regulator: tps65023: Constify static data regulator: max77826: Drop unused 'rdesc' in 'struct max77826_regulator_info' regulator: max77826: Constify static data regulator: mtk-dvfsrc: Constify static data regulator: pcap: Constify static data regulator: pfuze100: Constify static data regulator: qcom-refgen: Constify static data regulator: hi6421v530: Drop unused 'eco_microamp' regulator: hi6421v530: Use container_of and constify static data regulator: max77650: Use container_of and constify static data drivers/regulator/da9052-regulator.c | 22 +++++++++++----------- drivers/regulator/da9055-regulator.c | 28 ++++++++++++++-------------- drivers/regulator/da9063-regulator.c | 2 +- drivers/regulator/da9121-regulator.c | 20 ++++++++++---------- drivers/regulator/da9211-regulator.c | 2 +- drivers/regulator/hi6421-regulator.c | 14 +++++++------- drivers/regulator/hi6421v530-regulator.c | 27 +++++++++++---------------- drivers/regulator/hi6421v600-regulator.c | 10 +++++----- drivers/regulator/max77650-regulator.c | 31 ++++++++++++++----------------- drivers/regulator/max77826-regulator.c | 4 +--- drivers/regulator/mtk-dvfsrc-regulator.c | 10 +++++----- drivers/regulator/pcap-regulator.c | 12 ++++++------ drivers/regulator/pfuze100-regulator.c | 10 +++++----- drivers/regulator/qcom-refgen-regulator.c | 4 ++-- drivers/regulator/tps65023-regulator.c | 6 +++--- 15 files changed, 96 insertions(+), 106 deletions(-) --- base-commit: fd9058d56c6de25c2d3215db4e2e950a7965ffd2 change-id: 20240909-regulator-const-b70dc22450b0 Best regards,