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: 826670 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 79CE41B9B51 for ; Mon, 9 Sep 2024 13:51:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725889901; cv=none; b=c6pmGgUtSiKRvW5l3WHMqDnE0I1uGxaKS10m35Twtkkwn0tyT/okbAyfXH/S+rUDBfJ5g+bhVjY0lPAWo57Ukem+JrdeE4WMlOFgxsDUTs6AIti+UHA1EtZ4uICAJQUhzhhcXvuePEZBDmnzH1Co4jQtXvk/uZIFoZ9pd9Uhke8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725889901; c=relaxed/simple; bh=zUHhg/UyzRf/dZcnGmfWPB4ecX+Ntlv/UdMU1qsMFhE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=g56yv4ikJqiR7J6E/WfF5ydgdPxERsKyQiwyvZUYt5EIZNFfYvFZeetPhUObjXs3eUKwqQfINilRjZr8z9G3+beFnLTpJ8oBNQS+xLY8KDidF/wQ1XAlztoK9E+/SvnPiRzSn8IJrzLvzGOMvPuciQwtjxQEGehNO5jgsjF86Yg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=BDV+0XBT; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BDV+0XBT" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a8d2bd7dcd4so8395766b.3 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=vger.kernel.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=BDV+0XBTUxkG7bC0jqKPU5sDkWVjJvr01NMnpn2FXLKd1uUEyUpd8OVdOL4WH1CjJn Mrr00+BMXiE66R0mALv6kXHSIYnb7h8JDiKGoHOmqkqXAmtMMRGOzPFnq9wM9F+d3diF XIH3ybP19IGza21+oG7G5DqjwNFHtbj/+PqMRq5YxKvW1AP1Gn1x/HK1+HdsnNMID9bm NMS94OiU2RhCBxII7Canvro2w+C+wIbZvgztygGXXkGr8/yJWUTZPKom2AZxnyQoYbiB t79B8Xz7F5tvVQTOz5va+XzGuNwFSO3d8SFCESPQk2o+5LrFXOoao1BVwY9+D+mtpfIs Hzng== 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=G0sXmX7t7qgfqcJuyKCuBzZeRI9YB51KbHqlNPBucuuqE3+LFXIFNBuhIF5hpQ3lnN z4yCXfl+8j4y2K1CiI9qK74S8Tu5UOzf6SOEgLJ6hMFnrDftrM6TkzVO36tZuJeETRpS FfG45m3T4Y1k47W+bmXqbUyDXuPj8ZUv524Fm9LIlRRVPl2I3/taWRQa/v8fyzKoQjOc YLCufkh6ZmSNlqmvkTPyKJ0PXdzCC307Q2W/bDQuYLxKyE0oI0DAIz/r48Js+iKcZmin Bq6f07/T6bjPIgWey6JkWxhY5GRjvFyrzf1GNalIY8fyWcBrL8140K9AttfpDbfMkn+e PPkg== X-Forwarded-Encrypted: i=1; AJvYcCV0GEAJPOTcp3gTCzmq/CJjPL9jN5XhjTqDrer28VUGcCNDOhpDPZDfCCdWx7sF7gt0K9Ddna1PcoVItGKO@vger.kernel.org X-Gm-Message-State: AOJu0YySSfXKc4TXlLORcGYuRXXL/EEYovP/VNvyh+RDyQmepYmrWLyT IN4V9nW5IrcdBhs3YrUuKMJrSIbiruN95wmQtY+1KA78ZROjRB0aGiYf+o1ZBLw= 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> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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,