From patchwork Wed Jul 3 09:50:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 809413 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 EBFC913DDCF; Wed, 3 Jul 2024 09:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000231; cv=none; b=LmHLkjeAA21i/80hOzgniFnoLyWpyGocO1PXx+1FUSXvi4uq7Zgwcygw0d9XONjY3c7vhEBwTf6NbzQrAFY6q2pMypVAISjgqpgKbHkL+sb0+4489wHywQMn9DYvn2Tdi5rkBTe8z+/8VAH6XhvTk7dG3UdTOZjIHEohHZi2EXU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000231; c=relaxed/simple; bh=zUIhNaJB9vytQBaKjIhITCcZRZzf530pVUJ7sHGUvaM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YlT1/N4wE31JrvDAdc/P82Ca61wB37RaKEOZQePhmMerPQZyQBF7GmeCFcsmefGpKJyy4YtN9InpqsBdh8LPb+1NAWKQytVFTsRBt1EgKESn+sXYbaZAjiKV1nThQIQb2c98lKYjA+npEcBIEoq1cfzAKGYraaXwuBdHfq0ZVCk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dKCN7hYY; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dKCN7hYY" Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-5854ac817afso3157984a12.2; Wed, 03 Jul 2024 02:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000228; x=1720605028; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=tjxB4KcUaWQh3jg9jUAlCf5iQpZ5CojbNVfQpTYS6OI=; b=dKCN7hYYNB6WfqF2MHkBerS7qX3BUSCG3FrpNkFgDfZJYYx8BS432hRDDonuiwH+Z8 Jc4Hsn/R8xJn84HsWCRCp3ZvH9yMTD1sVvlrwNXLmlX615pIcIafQhEebjxuvXCghAL6 HlZOVFqIpf4/uGKdwyhqFrBtLj0B64zM9m0fE3RH4cTfDB7LZRl3k5GTcpVFkoDR3dD/ GR0gDPNNhT+H6GPeo+DY2qNHK/HwzC4CXZHStNAJ0MpzqhosBkeHpUgYt+ssAqI2KF75 3nHRkYvpJbx19rVuxw0WuTaIL5KfTGS1qM6A9kpAdamrAQ5LkTW4hOeKmQ2sfM89rVCc ibvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000228; x=1720605028; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tjxB4KcUaWQh3jg9jUAlCf5iQpZ5CojbNVfQpTYS6OI=; b=cTDx73P8VzL5nf7KsIVrN471G3hG0tCKPvi0rlmfTy1IZU/ImCJJ5/vr1n37O8my78 jfz+SD4b59jYFXVIveia5Rna4BJz2P69NkJrgQfmO2ROn6lsUFSh33qLy6JbOtM/fhdE oJ46EBgXu++TihSm977w4Z5mMHyDR8v8SSZYu65TUJfD3UT6CbGb+KLEl2Zg6xuJE95n 0RHvYEZMOG+CR8dEq0Lxf1++aBbpzT1sUB2UirQUrtJ1ySOk47kjR4s5/yJqsxefK8Ck 23HWOlWAe6+pvtZLV0sH4BVTkcf8JqhYpuG4UTx8ASE5lluymqZOtBke6k3hj2o/7nqI Qg0Q== X-Forwarded-Encrypted: i=1; AJvYcCWkfZ1tZ/wWJF85Psbv+ffUjJwyaAsYWzTU9Hw5lEltYlK8BXYqG/eJiJT5QI808qRXZKOzeC/zTRwTQoOMKlmZ56MYfpfwY9btWZJV9s6yg/rVlnDNe2z3qS93sFrbzkwGSQifCA1r+349DJB1U868iSxZcuIC/w7cUy52pCxZjcdk0QWS2A== X-Gm-Message-State: AOJu0YyRWql/2FagJ92TagJK2wG5+qWnFJt+C2q+G0ZDNQGcsLKw+VVp BV9hNKbSgwpjGD8fA7doH62H2gQEacENnE3oVBZxeFVTfp/MFud4 X-Google-Smtp-Source: AGHT+IEu9wfxofZHAUHv13UpYXfpE/fqLZpj+TDjnY0WusdrAi5dE3xvADca15im/1AFnBZLLs17Ag== X-Received: by 2002:a05:6402:84f:b0:57c:947c:52f6 with SMTP id 4fb4d7f45d1cf-587a0a0e63fmr8194901a12.26.1720000228030; Wed, 03 Jul 2024 02:50:28 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:27 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:14 +0200 Subject: [PATCH 01/10] clk: meson: a1: peripherals: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-1-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=786; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=zUIhNaJB9vytQBaKjIhITCcZRZzf530pVUJ7sHGUvaM=; b=AiazcxboMt3P+LY+hRRrue83xM/NS7alWnXU3z+f1NiZvmZK4tScX4flzKSP5LfXviBEcnrjx ODWLulzhRzcCq5gs/K0LdUZbMa7Vo+Mvv37YJvGBTZSCyUOk8z6bFL1 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `a1_periphs_regmap_cfg` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Dmitry Rokosov --- drivers/clk/meson/a1-peripherals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/a1-peripherals.c b/drivers/clk/meson/a1-peripherals.c index 99b5bc450446..728ad13924ad 100644 --- a/drivers/clk/meson/a1-peripherals.c +++ b/drivers/clk/meson/a1-peripherals.c @@ -2183,7 +2183,7 @@ static struct clk_regmap *const a1_periphs_regmaps[] = { &dmc_sel2, }; -static struct regmap_config a1_periphs_regmap_cfg = { +static const struct regmap_config a1_periphs_regmap_cfg = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 810888 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.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 A329B1422BD; Wed, 3 Jul 2024 09:50:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000233; cv=none; b=qfM0cpRdFDOZVO8UXZIsDIQN0O571oZnqGRQ0szyPmiJoo9eadUT+2VgqQPpn34ymv9z7pWLfXHpiRgfiREra+LN6YATOiig12RV9qyYDdVr7kyb5coTVfcTtx+LugdTAl36suRQTb5NA7jBQdyhJ11gApOOWcz3WKbvXCfKh/Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000233; c=relaxed/simple; bh=w1rOHhvKlNZR5V6gMM58fQeON2s1grhUcmwjN3eUzC4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HjaCv9DTXESWq6Ys2VEz+0c5el+qcejUganlYImeejJClAtHTZAmjBhXVhKbskPvBYft/29DrBSZd7MKHkY/8+A/ZwcXE+lCvdIwAOhB7RpmMrkB2gGYorFJeCNnIauM8BesKyEbT0czQAEes8hzUIuWlFdUH/HnLU8sFb/P/Rg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JsRRTL70; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JsRRTL70" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-57cc1c00ba6so3480933a12.1; Wed, 03 Jul 2024 02:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000229; x=1720605029; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mYmIYCmqwVvji/gLlU74cbPYmKHONbdVpgfdzYyiV74=; b=JsRRTL70rCvAdkPLKcTnUh8mmAiJFBu6xvIsRMhR4oA/ulSrRVMDavn0NCwrrNvh3c Ylygbj9j8zpu3Wuzxiuh5KVyI3wl7jhs2YJESuCk58XhuAaNCRH6CsJpkIFFWe+ykOBD 28tqDrNTK2LZFq/+Z0pqtV8Ja5m+3ZGYgRu7ud7/CW0ZIYFxLbbHaxsTPSULTHdztRn0 Qd10jwCJfebQ0xaVqcQ0vH/q8c17F5Mv+hpTG6c4r7QlXeFqcgjOGsQWpNE/vV/dOm/V pcBZPMX5+oNFOci/HUpeDV1wEP6zlfazkKqpi33y2Ko30KrxOMsSaKNlbqu+l8M3y713 KrrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000229; x=1720605029; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mYmIYCmqwVvji/gLlU74cbPYmKHONbdVpgfdzYyiV74=; b=VdM4ZxdnobdmDCzuzgHy8cRxVhm0q14cSeKIu8Vjv/uSto97aO/oAYBQkDr7UGXPi2 zaiOHIwRyo9S/vVaA9VIqmSZk01r7nnMBzEq9MNFvan/ZzJGAo69TDm19CB8IwfXJKS6 3Rjhl3K7AQoqdkschJ9pDFfOZSLBAKNGzkysD6/GDyoRLyRdonsN4QX8OYms8rcwSi2j XoeKZsTFXVXKAyJzx4RcuqSd+9YeoedDACgIR4M7QFLRBI10Q1haiAWu1DMKy1HxQSD8 8m10Tz5xDPvsP0tLH4/TosH8e0ln036wruitBZaIy0a/uyWQeSS7uTLlM5gQ65LLF0U5 2ccA== X-Forwarded-Encrypted: i=1; AJvYcCUwBhBYsv591gDcGCZaH4Wv59OiH45VE5gktPpfro2ZSlWRVlzDIXDagZPitbcd/El7ObQiaPPHvU2RA/XrrAXqzWmZ9t6RFenw6bVhw6bC1W1VcqHtZJ7GmEqme9j9/WKujCAPU7VwnuVgct9m3g0jHWl6IR0phajTkNFCi//dChkuLN5T6A== X-Gm-Message-State: AOJu0YxvpaRa+x34Jqvu6Oh2u1ARQttFVE4n2b9vw+Nk4qBnUV8XXPB1 qFLLB5MZSA2O/DjO1Pj4JO/mtEWGtTS3Wq4Kp0uy8N6kymos57YF X-Google-Smtp-Source: AGHT+IEjqZP4O3mOUQ6GggXaD2dddoBtsXMh2gmEY3SRCb34lAPZsm7CE9jeeuYqrl4eCohJ0y9MQA== X-Received: by 2002:a05:6402:4304:b0:57c:d237:4fd with SMTP id 4fb4d7f45d1cf-5879f0c6ab5mr8167310a12.4.1720000229439; Wed, 03 Jul 2024 02:50:29 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:28 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:15 +0200 Subject: [PATCH 02/10] clk: meson: a1: pll: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-2-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=729; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=w1rOHhvKlNZR5V6gMM58fQeON2s1grhUcmwjN3eUzC4=; b=VJKr1FcizeZqWLivzNG3Thfjr+2RDK5PLLnFSUkzF90v7ziEIDUwgUNgPc80/Xsr3c6NTdsUv eaNxtmI5CINB3at14UF4KycZXJyoTf9I7pB/2nrA1YleMXLtogVfBdT X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `a1_pll_regmap_cfg` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Dmitry Rokosov --- drivers/clk/meson/a1-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/a1-pll.c b/drivers/clk/meson/a1-pll.c index a16e537d139a..4d0a6305b07f 100644 --- a/drivers/clk/meson/a1-pll.c +++ b/drivers/clk/meson/a1-pll.c @@ -295,7 +295,7 @@ static struct clk_regmap *const a1_pll_regmaps[] = { &hifi_pll, }; -static struct regmap_config a1_pll_regmap_cfg = { +static const struct regmap_config a1_pll_regmap_cfg = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 809412 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.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 B0D9A143C52; Wed, 3 Jul 2024 09:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000234; cv=none; b=O4ABFAM8xJekWVYKFtT8x16KO5IRUdAdXME0+xN3VWUEKXkXOZrH4dnrV4ALfj61VWyQs93yhtlPkRJe3oyp83NXUjWSoqtbDyVXgWnJZnNCobHW5Ol2ufD60JbCDIV9CM/mwLbb6d8CUtrNZzHU/EdUbyx55b0husOaN7hWQok= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000234; c=relaxed/simple; bh=TxADEvEEBX/TothZVxPgAJ7RkXfQpn93WbFswKz2wf8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=emy1/Pu/tHynZwQRqSMOTjqeZnxPAo8tP+6264O4axoaEJxDSUhDKcKTPBQtLRu4Ptg/COkS4Q+5gp+vnEPMMrbLhuM3w0N7utDc6zQC6M2UMOk6c6IIMacbDFy33DsR+E3QkN4z9tQwqn/nZRPQ1rKspzLuYkzxrnaBkPgLxdc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gCMUeLc6; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gCMUeLc6" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5854ac817afso3158039a12.2; Wed, 03 Jul 2024 02:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000231; x=1720605031; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=nvMEinijEwgsKZDsBmGm/iKxTFLThMpGobnSIWlzUFc=; b=gCMUeLc6ZSRT2nYpqXde7mp7rfirujtgQcFaJfmDZUJQx0NEfiqE/7EZUMIuz85Ohm UQarvbjQLJkQQ36cHnscIzRVEYPMDrQc8WYSZFw2qaLBIM8QbjjwVJ8vojBu0vNt6a3h q46C7yVZdPQGr+/4l+EQQo3uX/wj3On4KM0A79HmXH7bG77un/dwjBPCEbBdtr4A+c4/ lLAth4DLnWXSXS6hYU95ZZC2+AzgdsFFtgQhnPFheMOkxFya6QAcmzRZxC+medxqSH/B Uybixz/Z75qDcSeIJN/0x3WJfc80ioF4db7WgDeQIHZBSxLna9i7x4OGiJqBuAIwZGDU jSlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000231; x=1720605031; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nvMEinijEwgsKZDsBmGm/iKxTFLThMpGobnSIWlzUFc=; b=qdO7o4KzZg8vDJ56yHsBvmvKBsMQcJnRgIKLYc2uez7edDCjbNmqY47edFHkWDiNJX T4KlhdYCflC257rhJ2TONrgXsaOXpj3fQanyF5s+v7KoPzGT7Z/iTqH39XkTX0XAn+8r 7IKtPE12ozp8DZm4mx/EFdV8JjZ9gjkY6FuW2v2YtE66Xpp3yNXNp80h3Qkxu7hQUSvo sCE9Kxphd45S64G/a0bJuCQaMtQFpwXdXPCwuKlF4q+H5EokszVZkFF4uF18bIV5p1r2 y+LtDTYIkExZWba5b8INx1mRyqr/BsOrdx0DJ/sY4c+yuZD+0zvDJVS7pmyL2jmUNzdA f46w== X-Forwarded-Encrypted: i=1; AJvYcCVQSInqns8MGsvxLFIXOvWHkypYhfcXHnmuROGy0f/yrJz+TVIH7xYCj6J2WHvfVUX8xmC4pLZlqdo+UcKDi1B4Qc64y9VL+QdkYBa60EP+OR0D3UyCTsUuDxdxd5bjIh5wtuqk/zEBa9khwf3XakF9jtiSEz7ib1egUImolhxT84Gr+2VApg== X-Gm-Message-State: AOJu0YwfR3YaPx0Hxw4Ma1GoZj0q12XLjPoI0ZKCeV8IQuX9Oh9/CDH+ 6sRFG4jFm/NE/kihpWSBDwuLFWkBU7R5mpgWjcquMOV3ww4MLHnv X-Google-Smtp-Source: AGHT+IHqO0NeW0hYgOS++CrB+maws1bAp/Jb+zrdkccIaJUBHpnIHgiVuw0F79kfyt8XXwzzdBrjHg== X-Received: by 2002:a05:6402:90e:b0:57c:abf9:e6ab with SMTP id 4fb4d7f45d1cf-587a0bfc706mr8446988a12.31.1720000231004; Wed, 03 Jul 2024 02:50:31 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:30 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:16 +0200 Subject: [PATCH 03/10] clk: meson: c3: peripherals: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-3-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=790; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=TxADEvEEBX/TothZVxPgAJ7RkXfQpn93WbFswKz2wf8=; b=ZRDeYsd4qQkFOSJF/zfGi7N72RpeUf69oTYxSsNrKIIUNBXaLyo9mTarnDmlHNHfjp8M5XoMO P5IZN9S7rqXB/deiDxd3FbCvxgerParLlTFa3YYJek2EV5ur4YeuUNQ X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/clk/meson/c3-peripherals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/c3-peripherals.c b/drivers/clk/meson/c3-peripherals.c index 56b33d23c317..cfa573262bf1 100644 --- a/drivers/clk/meson/c3-peripherals.c +++ b/drivers/clk/meson/c3-peripherals.c @@ -2296,7 +2296,7 @@ static struct clk_regmap *const c3_periphs_clk_regmaps[] = { &vapb, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 809411 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 2A6B9156F28; Wed, 3 Jul 2024 09:50:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000235; cv=none; b=lB6gJxNx7GY8ErbWGUA1d2jPmc36FEo/FkW9fokoKzF0s8OlfixlnZKtRL3zNWe4ckGYzi2bO0WiZGP8rz81dhTnFiLSnAA6qMeQO8Gn5EkC0i/tBOZRh/5Hv8iGRmCux0eLphU7WQi9fguNSb1yvve0rjKhJuzgchhnaBauyjg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000235; c=relaxed/simple; bh=87EEyGDhqMM4XSc2dnrLtfdRuLpnYLj4dPXzZjLB2bE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=itYbCUJWY6LeEtc75gFQuvi7nJe76wXBHj3lzG43I4hUME5BkaGgy5zutTABcuU6y9+2TTsK4phEe2v2gPOK9ZH2nYs2UXqOMBfksFgi7dYFdiqp62m9u3N3ZFwsODOLX3J7bm/ZGJlQO24K2uuUpIK12Tzl5Y/tsr7YDk1Dmdo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VaMCRLnj; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VaMCRLnj" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-57d046f4afdso1495188a12.1; Wed, 03 Jul 2024 02:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000232; x=1720605032; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Kd/sgJHBXOe9fs3qrhdvMpUQXrTXNMFaR6+MycDuFVo=; b=VaMCRLnjSFAmCJxeE6GFgMg6azNYQggJhWKo5o290Tr/T1HF97RKBS9isr2JkQTeUW JP4JqDN90KlfLTcPK+Pfs2Jx0UQo7Ee4DLXpwVeiCfnm22iSXYieEGMQ4Jg/k9f+Lywm Rn2eMZ6KheBwsHE5XtC3cF9qp3ECrDiH3Ou7J+otTlOm8cjeEPPV78jdIKuw966vDYDa 7q1fLt2GZ6FAXFW3qnzXHbK4hAMGE/Eqj0R7Uce/mrW5cVpq7TRtCrlZ8AfiFFjgApcb ObGgA7OSqocLu5/SBM9KtMzSgH961urSg3vNIgjznbzWv4OM9hHCwk1RbYLp4lZ+jcR+ fLzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000232; x=1720605032; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kd/sgJHBXOe9fs3qrhdvMpUQXrTXNMFaR6+MycDuFVo=; b=dN8d3WMmzAsxQWo4wLSof0c8XQPMuf6Rpoq6irWx060OH4PDi9wbuA4zgWuEOiGOsP u6v40Wtx4Zz0i9B7TCsacQU1l8hAe56JN8vC+C9cL7pQvZm2M8cOix2loed62L93u8kg QZr/DUpe84457s/B2lLO4bcwXymfOD80FmvoS9i+z9ZMdT3kIcpOW0mpA7a+5TxoHKoY r8TpJ6/FMO/r6Xx89Qs4jlSgfyipLzqV0Y4g9qwyn7SVR91cv92l9j1uV3e8aCyZ58Ym wy/a/2ApKeOEyZmfH+IDAKm8y45/K0F9SvNFJYJas8DOMyLXLncgqYaCa7WJGd6a1M/J bSrg== X-Forwarded-Encrypted: i=1; AJvYcCUVWB2AfFTyxSpjGWlHLjCA5KQt4uHHoumJcTUedp+fnF0WBB20ibgVpaGVt/l6/EucuL/yfMHH6C8CkIwzJmVAqtxy4MMIZBJ5PbNFMqbMF9Si1S5DMBrAxEVQgTxZ4Nw4sjk+/UvDeNf3cz4zZTZb5Rs8GLXRRPWEWgGcyw9vq0eAewT9QA== X-Gm-Message-State: AOJu0YyUXEb2XyhzsAz01WWIlyvOv8eRa7WYU59ECTHQCYlF94rh01mo ICQsX9cMA2pkzfIss+SLUtEi/or5L7Xfy/NJAhz4i7oDVxyo8aHm X-Google-Smtp-Source: AGHT+IGs/WDtbZIXTR4T3vygKaznx3++FpGKeIUBPGN/fnT9vd+Uc+Jd45wPLlvNWdhc0V3hB+BFGQ== X-Received: by 2002:a05:6402:1cc1:b0:57c:7c44:74df with SMTP id 4fb4d7f45d1cf-587a0822c1dmr7791768a12.29.1720000232375; Wed, 03 Jul 2024 02:50:32 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:31 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:17 +0200 Subject: [PATCH 04/10] clk: meson: c3: pll: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-4-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=745; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=87EEyGDhqMM4XSc2dnrLtfdRuLpnYLj4dPXzZjLB2bE=; b=RRDOpnPm8XSIvDMG7UScdHDXqikzkMcrNLmY1ueozOmyEoM6oRCDBKdS0sxGWYXstfh9vXJrP yRZGKhFD/fLAt32CCD3d5+xukZJvqb/EN1KQc39Rdh40+W9lXA4SAtY X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong --- drivers/clk/meson/c3-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/c3-pll.c b/drivers/clk/meson/c3-pll.c index 6d5271c61d14..f09f4f7b46fe 100644 --- a/drivers/clk/meson/c3-pll.c +++ b/drivers/clk/meson/c3-pll.c @@ -678,7 +678,7 @@ static struct clk_regmap *const c3_pll_clk_regmaps[] = { &mclk1, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 810887 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 8698016B390; Wed, 3 Jul 2024 09:50:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000237; cv=none; b=txUWWbgHBskTqcOjiLaRR50SXNGQFxrISVnQOGSoIZkzifBx+NAiYfOXM5k0Kg8bgMbGCQ2zDJHIYPO/ietKS/Z3R3nBmiJKW+CMEeLMcjeOksPSVvsnVak3FqU6H1XNAaXvICnFq30u9Pj0tL2PKwAoRj00bsLPt4Ukv+qbWEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000237; c=relaxed/simple; bh=N0gJOHgxfgNpyO7ny+dBVGTv1J0OImnbpHVOZH5V8Z8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hEMSLf3bXq3mRseJzoKacKFHzYCQYPvkIaxf4VHB0U1F8lpBBv+GRUGPpXCDXyeVvK/BgQi4NMGlf5ZDSXrSP8tmRwquqDR8nujATcDb5kkw+OQODCr6nfX0nc9K5P1pY9Igi243FUH9kade013W08nLtlplFnWh3Lc6u+VJ5OA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=m7H/CBfp; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="m7H/CBfp" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-58b3fee65d8so2455288a12.3; Wed, 03 Jul 2024 02:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000234; x=1720605034; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VakF1oeyZohqJOzCR2EB+e9QseEPpQNRdPS7foA4iOs=; b=m7H/CBfpUyIRjNol+Q66Shjx+dyIg690wEt72iOsGqvZBfc5apYKKLSYqxNvVBBfxz +SmA1BzZUPhnI/78itDNFh3UDoGXvFbTEIicgSfO580+K+Mnbjb3ZjzDc9/043nng65h RRm2cAy80WLK+jF5ZA/glQB7Diev7IHF/fnsdeYFwryv3ky0RA9XEhM4FmN0BFvsVTwb uSY985WC04nZTIA09GIvnfSsH4uoWsdfBXDFLatg6A4CwjdWeTUzlsHZTq9mT3U1fdpy r/WdMrg+BHWjPQEf4OoFhGm/7MwAA158z5q5Rzohsy0F2jEV6lhsCopkhGCVoYpS8YS/ Syvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000234; x=1720605034; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VakF1oeyZohqJOzCR2EB+e9QseEPpQNRdPS7foA4iOs=; b=o8gc1QV89+DwCCyrBofJngemVc3270xca+WEpQMFIYA0Y8sPeI3S+a4m/71TCPOkFl W9P0hRJNeSzC/ZMU/nUqBGgMSFByIF0EDx/2rmqjelBHCx8OuCQEOqpKLTG5uNJVMstt vL1VkAr2QLpS//keyskWq6qkPMUeUijcws7r54q6UI3O+IHAHuKAOkwF/WNFHTcfUfR/ ZnoR6sGOoQDNVN+nOcJHK5MsJRXztZEdjS9M+twJmJxH7u7KRmyKKlCXW1PR9mFBECjZ 7vjRuiUNM2uC38u5QoQ4geeNgy/Dt2wYt0S+xujDeDFgekmAVJL8KkRnzHWLk+YfbljW kKtw== X-Forwarded-Encrypted: i=1; AJvYcCUPP6Ngxg1QRg2agl79mcgR9H0Ku5pTo5Me4AxG31ZkvO0ygPFZoTx0atLT7kOlejXBW4sj6Cb02uTgdmJnLQcL6r3KVNIB/4kjyrILSb1vPWMBRrVHr3/EXx+LEVnVLJcg6oVQAwK2XBOw5fmVsRWkxo5tdb01LnfmhbZ/F9/1gQA/Tr5v0A== X-Gm-Message-State: AOJu0YwoTBRvgZBjOd7my0P+gGYNo+kZIZr+SZO8fXcw+6BLUG2jQ1ed iVwKEjz9EdBiP8CWlFlmAeF6ZyqWPMJze5IF9r5hrrWF49TMHW6Q X-Google-Smtp-Source: AGHT+IEGIMF6jrdxS/In8NlkeaCvlqbPYXuxDzo7b2vkqDV6QtioedyCtz1EmFD+tAGLOVsHKUj0Ng== X-Received: by 2002:a05:6402:1e94:b0:586:e6e3:ea18 with SMTP id 4fb4d7f45d1cf-5879f5a1b6bmr7392371a12.23.1720000233803; Wed, 03 Jul 2024 02:50:33 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:33 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:18 +0200 Subject: [PATCH 05/10] clk: meson: s4: peripherals: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-5-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=807; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=N0gJOHgxfgNpyO7ny+dBVGTv1J0OImnbpHVOZH5V8Z8=; b=brXdgrZt/FFF/7aOoRwCjMcSneXj5ric9H9NFCiK+WzN1kYqNVkq0K4Ee43Qa1H6bBN27toOv 2nHJ1WXyPk1DAD3OnpS5N4nhsoLAwIQpSJeEY+xoiRb9y0EMDFuiH3s X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/clk/meson/s4-peripherals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/s4-peripherals.c b/drivers/clk/meson/s4-peripherals.c index 130c50554290..ba1d531fce4f 100644 --- a/drivers/clk/meson/s4-peripherals.c +++ b/drivers/clk/meson/s4-peripherals.c @@ -3747,7 +3747,7 @@ static struct clk_regmap *const s4_periphs_clk_regmaps[] = { &s4_adc_extclk_in_gate, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 809410 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 1673F16F857; Wed, 3 Jul 2024 09:50:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000238; cv=none; b=VOVwQRq1NLLN509N8BTvmnmum6Ey5vbi2Nrf/JTUlNQE1F62V1HtkczBjBVvZX7uFyHvYJE/dVmbNo3l+4CcZqf5X+0uM8pRaMR/Eyt13z1jjLX3ULvxREDuYqeoIRVW2sXgJtVHFN5xlwqB1ERkQMLiUNJ12GqI91E2zjuvg0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000238; c=relaxed/simple; bh=QjI2XZ6DpFgtcs0s52itimxDAtU+za0z6ETKz2I5xKg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BdyKJ0IzWPBDw77g1rrxfW8MTusBs34bkuwc19PItqtrbp9yN/kixoTsglKfVe+H8ZDRa2C0O4xv5zFQFho6MU5LVkLBVgAG2Q32nVLo/R4GJ2z+aiW8sDhgoLH0UBQXHv1UaQQLehrBVp+sqDhusTIm07Z9azPrvItNLYt1010= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cK9uN7wU; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cK9uN7wU" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-58be2b8b6b2so1988617a12.3; Wed, 03 Jul 2024 02:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000235; x=1720605035; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=q5sGY1MHMh4vP9RTlfTXcp30OvUGJ6Up0VGY07imbb4=; b=cK9uN7wUHjeVzqpg52szBiGfCV14WUQnrMTOMsF83o7HDKuIQ93AgxAUQPZCIYHHvb HqrptZHM8cjpJeGkFyt9jd5vLGKWmCcbi8+fCMl+bgIxjx8gXYb3AL/foISjyXbKZYuq nEAP6g5unl0ZzvpGja7WFb+McXMxYR/KbNBqSkXJE4iJRlhYgHYYXajmG+wk+5kdsL5D nxb+w9YAscVlPwDIyy3ZGJTy0WUjaqDTr+RMt/Yj8lFOAQFrC494vM7f7BnvpZWXy0J8 fazQn3cnvfguaxX4Z/46KabB5MZbEwt56XlL8b98hl01Kohm1jPFUT5wW53uQgiyKUIS BJsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000235; x=1720605035; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q5sGY1MHMh4vP9RTlfTXcp30OvUGJ6Up0VGY07imbb4=; b=k98X2W8+5ZHFEdNwzo2GGgYEP9tULcLbvGqbAoLo8bADN0JxwhY6sV3Bif5GM86cvH bgOoaaY8nV1h3LQt1MzSy0xx9b6jyaEbl/r/hVBhZPkuAfyS2hRh/gL96w55t40YbZ6o c6zvYh3XKUPMln5Lj9mOUl0OTRnaZRTgdI1ATtzbxHHj6XTJffnNdqyleetNfRAV/zxM hIWdBJQCyyar4rTJneR8Lxh9yvLgPARFenvebxAPzVRVUbi7oMfSVcdVj7fYb/+c77pm xA44U8dkqEmIFFLrScw+WjSQ7mniKmNzfyG8f2Xuzdql0HcpQpItzu8PbZcO2C8+MJDi a9yg== X-Forwarded-Encrypted: i=1; AJvYcCWDT4CNBHNwiGstTvn6fSxjrbw+Gku6bhEfynqXw+PNPAOCiE+ixL8g1dbTmOxvaDdNS0fsQ4RELe6MTtsg3wsrJzZEtOI8HBG+Iuwv9jlR00v9JJWAPnBQcCIKC8XhkQurgII7hRTNYpi1SOAm089hdZcOsQL6KANiT60OzPjbu+eUiW6ciQ== X-Gm-Message-State: AOJu0YykYlG1dgAI9Y0gUXy9c7U0uwAz4ysIsGpJhM6/X5WaXT28jTyC ZJ5B9yKq+Rzpd3OenYdEoz4nHZ5wluUZEGp11lKlDT1Ra3sca+3y X-Google-Smtp-Source: AGHT+IHJvWuVEjeg7jS3YGWzwBblEC1aBEjiRtx7Wx+1gkXGABMGiz68aiczGU0eMJw/KYhEPM88eA== X-Received: by 2002:a05:6402:34c5:b0:57d:4cbc:cb59 with SMTP id 4fb4d7f45d1cf-5879f984a22mr7916813a12.25.1720000235436; Wed, 03 Jul 2024 02:50:35 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:34 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:19 +0200 Subject: [PATCH 06/10] clk: meson: s4: pll: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-6-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=782; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=QjI2XZ6DpFgtcs0s52itimxDAtU+za0z6ETKz2I5xKg=; b=shXXui07Vv0SxzDWgmKblWiiO/F6QjUD3Gg2XbBPFxNeKr/3DO+TzrHVENvorbTe6ULfqDHDp pgzaktXTA0kAf2uTyPcMVNSPw+MBMfrFC59IJ9aaKMY+q4QO4+9Fx/x X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong --- drivers/clk/meson/s4-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/s4-pll.c b/drivers/clk/meson/s4-pll.c index c2afade24f9f..27c10fc499be 100644 --- a/drivers/clk/meson/s4-pll.c +++ b/drivers/clk/meson/s4-pll.c @@ -799,7 +799,7 @@ static const struct reg_sequence s4_init_regs[] = { { .reg = ANACTRL_MPLL_CTRL0, .def = 0x00000543 }, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 810886 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 9407D171679; Wed, 3 Jul 2024 09:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000240; cv=none; b=B+7Iu8ujKgZZvIm3eYB673GMdtHIJORU4YJmz7WiCTiH1EEFQkz5qgrNG9ZudrVZgGoz26hQnLM6CjoKISG8WsCdB1mrPs18Ged+RUKwSTM+tdQsQ5IQXNOQqD1UrNzhS4tUb6lYqQShNMmoYVuOab3wbO1uwmS+3hYlW1xdMUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000240; c=relaxed/simple; bh=y/2i9xAdynMCIKKj977aVCl8uDEeFBvS+ERij24gH3E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CuH5UfBNgqPS5W0lqlVDawCNtSsQOQ3ePTbqh2Ksah2+w/FyT96179CoA21+vQ8JDum3rANj6+4DWRBbaeCNhFkoZQMW9NGORETFeBuofWYMzZwZzWvgD9u7KpN8QC6rIuNYEjECqol4RUpMpZoXE5snjHOebjtr9Vx+47lt90U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZjusZYfZ; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZjusZYfZ" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-57cd26347d3so3344834a12.1; Wed, 03 Jul 2024 02:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000237; x=1720605037; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=k/v+B5h2PH1m+q96jJ+7IvzomlXuROk3OZZLA8dWAec=; b=ZjusZYfZpVqlfA9DmEoF37QlVqlBeQITzOiIJmY3lFLKaRFfQ9t1Ip0k8GMQ2U3GLv +B+6Ma5PO0HJacbYcDoUufEdfpMpKm4LctzJYXo+cbC8rb4FZkD/vJOsD79rG+mGjCfl ghJqBpVR5StzwLLingDWwiG03gT0f2q9HzXLxFW5wRatTaK8IkYu4Mcn8pmQ8Cvj04W2 fXDI+XUMv1cj97ALtu8/zZGjUf4qo2xLmx1TGFp+/wDWBzO5ofb0Zghvuqk3urMhS0og xaQZ3gV9MWftpRcyf7zoVYOP1UEOlPAWRPLh7xcVS5C92gyZurHKRlHBJ9b8nOvwHu3d 3HJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000237; x=1720605037; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k/v+B5h2PH1m+q96jJ+7IvzomlXuROk3OZZLA8dWAec=; b=sbe5GLG3Bx8umH8fb/cw0Fxl9otv/zg5qTTXpNuxbEaWk7zwmWwKkSIwg7T/oAGm3T lkJNNgJei8uAhG3WVdn2BuA3LlZRzSEE4nO+TEbvYWf//Iq8shVUbTBUW+5d3UZ9lXXf AWxYNDBxezyEUv+9YLMgZNAUg8PwLH/jSHaq5JdazYI5HMiFwdwmzedzP7D5bH4KdjMU WJFSHwAKjUD18UZ3jAKh9EWUAoZcbX+SG9nzmPFllVXXPF1onFUGDRa6ogGE2+bwjBTg 1ZEu/PDM2lZI2Ob1S40/rv6iEtnLlEFbv4sVGEZHxxWHfIKSGbxnbW7Vx2neq/HmzhsI iBOw== X-Forwarded-Encrypted: i=1; AJvYcCVUgtceTP/UmloN5PLjzuTIbL16SNP/h794Va+3IFBNQsAMqD1sG9c4eCn7xbLVtNwN1h5t6BLc2selYNMknkamlPyQBO7Ug5yD0meLIwkzzxvFP944Dt/fo8+JX1i1si0FKeAXPDFK2G1R9Z1Oxo0/rnDTjwwvYjqM3/tzw8QNg58SX/Dt1A== X-Gm-Message-State: AOJu0YxY3qS0a7HXG69mmAIV931rpXBIvl+2urF5Tx640C5GqNP1Jbpo aCjQD2F23lLavo7PEffVrRN4vqo0DxzNSTg5phAlNstZ3VktNUes X-Google-Smtp-Source: AGHT+IEIY4dIoxPJludnffZYVCFFdIx0eviJTJj2qywdu4egDu5miCN1B1+FWYpxH8LMM6MLKJZmaQ== X-Received: by 2002:a05:6402:35c3:b0:58a:e810:227d with SMTP id 4fb4d7f45d1cf-58ae81f67dfmr3569556a12.21.1720000236940; Wed, 03 Jul 2024 02:50:36 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:36 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:20 +0200 Subject: [PATCH 07/10] clk: lpc32xx: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-7-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=760; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=y/2i9xAdynMCIKKj977aVCl8uDEeFBvS+ERij24gH3E=; b=Mp1Bzj4pQqStVgM8m4kQKFq4aJg6t4Fn7Xr88JURvNcy0mwlGzsq289eVMQClPqQGE4zzTNJQ l76GeFFivBFAiHCY1+doTXdXhw5oYcuQ9gGfIgcLZeBm7FzaG8Rz0MV X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `lpc32xx_scb_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/clk/nxp/clk-lpc32xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c index d0f870eff0d6..e00f270bc6aa 100644 --- a/drivers/clk/nxp/clk-lpc32xx.c +++ b/drivers/clk/nxp/clk-lpc32xx.c @@ -61,7 +61,7 @@ #define LPC32XX_USB_CLK_CTRL 0xF4 #define LPC32XX_USB_CLK_STS 0xF8 -static struct regmap_config lpc32xx_scb_regmap_config = { +static const struct regmap_config lpc32xx_scb_regmap_config = { .name = "scb", .reg_bits = 32, .val_bits = 32, From patchwork Wed Jul 3 09:50:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 809409 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 2FA4E172BCE; Wed, 3 Jul 2024 09:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000241; cv=none; b=BzdP44cy/K8BP/kWju4EagqR77CCRrjUjdZmkYJM4/EGuL3tVZUjMLpMDbzS+HGJcL4ZHCfSwT8Vxt9xZhuJVyCPrKIIhGEbcCj/k+Q6kQ7Q+QnE6TZ+/nGTTl4kdeOPpbmuKARCvl34TPifQGuuKhLEhvel7sLC/VqqLAmlmFc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000241; c=relaxed/simple; bh=r9UG0iaRfl1edz0iDrKl1TCA7udEuIQIOzcFOl/X/K4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aM8mkW+tNS0/d7bWbK8refrmXnfELKJqIVKzApqEXKiHdhMaoEviyi0H0iZ6Lq1k9Blg3uhqd7pXUDkIsaqaLhny1/TIPuv8kyBxEhZH+gA46yJCf0X66h0SUQEHeWfa8p5sBhAgecXPXJfjf/HriiPeRg5DT6cxmkEjG2Dk8VI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZW9lM1tF; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZW9lM1tF" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-57ccd1111aeso3563741a12.0; Wed, 03 Jul 2024 02:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000238; x=1720605038; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wLgsGqmc7BPqHMYWncG3lDrLlsc7ZfRJcAq4ykKg8iQ=; b=ZW9lM1tFTgzOV3EICwEov/SvbvgcwYBIyBEyb+8XNUw2beOQ4x8BjniOn2/8c7w0ka jXAk9yzCSmBmohkIlhzBy0Q9hSbPKw0zT3++x0fjImnrbYj30cbQfBBrtun8luZvViAk IxRR1QykXozn89T2pFVDCKn70SzNEyvCb1alcANQSpP7GIVKKsH6CPblo0ZTrj52vgsC kEtaCGUhlBGHhTR1n/A+ukqR6oyqpR+ibY8CWJriJk+89kNPmdakTr8ngZz+7BTtcWgn QcZOmNJkItfE7TCLopl86WsfJJ7vBLO6c694Mv0o6DQ2KYDGk35b54vHid8v2dOahQUt beIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000238; x=1720605038; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wLgsGqmc7BPqHMYWncG3lDrLlsc7ZfRJcAq4ykKg8iQ=; b=pQJZbrC/hWs/YR8akkCX89/pPKfLPtmirWj7MtJx4p6jKVmA5Oxszevo6pRK9Emo7/ XhCtIQeS/+nidZdsL/e8ouq+cEPoUYThncS3OOVqI/7rD101ARAkH3xm/Zrnmoogc46+ ZkwBgV154ZVThMQLquKrn3piQDsH+l1gPaLRcbWPXJl++IZ1YzR5YhmE+eCFX7TS+Wut eOJAHOgZmp7KL2Ddwg8fnLZlTuwgQCIlIL0t2wdahrZN+Kr5H4L98oj2bPy5c/2toKvf xLT+BB2ALwRMa8E6F8ZQod5GZielArjj5SdOFXQF9VrB0tU2P72ei7h5hTXuuJPBqIps K6HA== X-Forwarded-Encrypted: i=1; AJvYcCU9LksQImPAU1fDEslGg9zD2qQwzfmoPjNHD8CoSieZIpxUURy7URF6JxCi/fgo8rN7gJ4l3q1VGr9E1n8CZqgMcrm/sZgCv9K+xL2ooVjCAXdipFbI2apTlmkd1dR91252qUw5tHsbBhbh5syucmrDRHEy+kuh3PtieKilLWsHR3keKfo7Yw== X-Gm-Message-State: AOJu0YzJtCWXq9YSZJxYTt+UJNPylh0kPoD7/quHoZ32Y+/wNJxcsIjp d8T1fs0fZ6D6PuO36DIhrLJpiE2p+6EOhbVYpLIadrE2zNRB/Xcm X-Google-Smtp-Source: AGHT+IHDBJT3Q4Laj/q87YJoetkDqI5ofUOXbXiuW/rDGosGYXbLBVOAupqJHnTVnz6rBOrgARQkAQ== X-Received: by 2002:a05:6402:27ce:b0:572:4fc3:3a28 with SMTP id 4fb4d7f45d1cf-5879f982ffamr8309648a12.23.1720000238458; Wed, 03 Jul 2024 02:50:38 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:37 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:21 +0200 Subject: [PATCH 08/10] clk: qcom: lpasscc-sc8280xp: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-8-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=1251; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=r9UG0iaRfl1edz0iDrKl1TCA7udEuIQIOzcFOl/X/K4=; b=B7jdNvHm/5Mt3ktcfDeM9c8KninOBlgFk8K0PVOq+LB2WsKsc0vbO7U/7APUKe4yiJSNoyh1i HlwYoMOYWxNBOUay+b6kvtC6NNAQ4xpzKMHyksGClZZg3Nd+T/kDVWb X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `lpass_audiocc_sc8280xp_regmap_config` and `lpasscc_sc8280x_regmap_config` are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/clk/qcom/lpasscc-sc8280xp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/lpasscc-sc8280xp.c b/drivers/clk/qcom/lpasscc-sc8280xp.c index 3693e47d548e..9fd9498d7dc8 100644 --- a/drivers/clk/qcom/lpasscc-sc8280xp.c +++ b/drivers/clk/qcom/lpasscc-sc8280xp.c @@ -23,7 +23,7 @@ static const struct qcom_reset_map lpass_audiocc_sc8280xp_resets[] = { [LPASS_AUDIO_SWR_WSA2_CGCR] = { 0xd8, 1 }, }; -static struct regmap_config lpass_audiocc_sc8280xp_regmap_config = { +static const struct regmap_config lpass_audiocc_sc8280xp_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, @@ -41,7 +41,7 @@ static const struct qcom_reset_map lpasscc_sc8280xp_resets[] = { [LPASS_AUDIO_SWR_TX_CGCR] = { 0xc010, 1 }, }; -static struct regmap_config lpasscc_sc8280xp_regmap_config = { +static const struct regmap_config lpasscc_sc8280xp_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, From patchwork Wed Jul 3 09:50:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 810885 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 9B7651741C2; Wed, 3 Jul 2024 09:50:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000243; cv=none; b=PGeJUZnLtu1mujZJz/vtGoyyEgqpNwzhfN5j8EaAgsiRwAUNYCWXM+LdJJer3ZuwQHF6fXX3ecAmXct3VtfiaJOVh5EIuTiIh2TfrjJJRUSdhq4UZKDknd+KlMSc3pKeMQtlrLUzCoROJ2A1kFaou5g59tLpP4fYf0WuIgiFjx4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000243; c=relaxed/simple; bh=4FCNr5GOWcEA6y5NqdpifkLm70epZYiiKRWR1KypcjM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XZixHBzw2gTRgGdm6rwNWxQ2zuZWc4em9LeAxbPoktjBEyz8PcmoEWEe5w6TqSqbktroMM41uuA9TzUO0eDdTBZmlV86Hni/0ZB7ZGfw4+0DvlWAIGtpIAQN/9pdZDat+dc8fMy+LTN3BmqmGDsT0rSRmVz0GFuElKr2waA3eRg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JwYkkUlV; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JwYkkUlV" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-57d046f4afdso1495307a12.1; Wed, 03 Jul 2024 02:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000240; x=1720605040; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=iiCqBhqUCgc2qlo69kMyfb9Kw0XmXS+HbWPYR88AKtM=; b=JwYkkUlVIbIPHjTKtZaKrfdmCLSqLIhyuyx38W+H91zZY1BtcXVylFiTSGDI5Etsua lPo82F83b+hMdY3AFj1T/Mkyww4P9cwp+mXZHjFmXX3HL/YoSoeWF1hZxLeX73p3GVkz GXayrJZFGJspaL0Zyn34v8vWAEZjDLx2hE8oqi5KsbALYTWzzb5xNgf2yAqWET4DWANg TV1Pjihd0wpZLvjNwcpNhkGrmF87HEqO09vIIbYbtE32ApVxyveJsJSmZ11mI1rJpW1Q MerYFXuDxCrvzaU4wHdKfi+UL9F/je3cTUgXtJqGsj4O/xP7vBhqmzNdmDtE21rPsUjR gfxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000240; x=1720605040; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iiCqBhqUCgc2qlo69kMyfb9Kw0XmXS+HbWPYR88AKtM=; b=tSlPFsnUFzX0Tc5e9aIpRdOfetkxH5qJrSglZq/4/lFUNcOCkGEHMoYm1hAm2eXlu3 oyX7/16KQ9JlU2H6Qb3h2a0cfhEBjGpqD829q7DXXSVBbpbSFMmiDtBrUqVFEYEM5tq+ l7fBWgR+bbucuZQky2J9DQrUIpAUOHNgeEqVdKQigH5va7JqAvzdWGmxvZOwvbYApd5F Xc+VSSrRvtLAW1AakxhTyTbwetWW2YLzctvRoDYJONjwgG+XJsQN6Z/5mIrcnyJAqe+G u/MNpj+SPwn4K8VLrO4JPrJA95QXTW2tsoOKq1AvM3VvGaoHShej+hSbkoortcFVpXPt aAnQ== X-Forwarded-Encrypted: i=1; AJvYcCUu6BL0u1HvbiHcsubW9oaHiTPgDEbI11XdHyqMD/4OvKeWHCdDvw0jpXwatZyDkopTMPfe1vgM09RZ/73Z1HdpolAckj9fSiPZOnfFrbRF7O1RldsxBDQj9eD1cbEuyCzvcFXCl1lAx+Xa2Wxno0CjAr1hyjZ3BeBRzljITAtYIPwDOjdx8w== X-Gm-Message-State: AOJu0Ywfudp0FNSIjFsCBp+QcoAiS75E53Hh6fXVLbyptBObagHkIUd8 9BpRmOajfBJmor/NMPDKx+dhQUA5Ayo7SiWnjAMjpH8FpLhipmY7 X-Google-Smtp-Source: AGHT+IH9+soogFDEvM3qfzATv+xM46StvZo3k4+MIXApLMLfrZb95ASnqwtlsqhaymD0ber1BdzxkQ== X-Received: by 2002:a05:6402:1d53:b0:57c:dd3a:f399 with SMTP id 4fb4d7f45d1cf-5879f3ac31cmr10795277a12.12.1720000239972; Wed, 03 Jul 2024 02:50:39 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:39 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:22 +0200 Subject: [PATCH 09/10] clk: sunxi-ng r40: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-9-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=823; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=4FCNr5GOWcEA6y5NqdpifkLm70epZYiiKRWR1KypcjM=; b=hxckhw6snFQZeQGymAQKqS0eL3J2chT1g/zqB+Nq3f/23Ef5U+/1Bs6WOELhWWFbyyQW0D6hS pI0dG8mxc8nCvqABfGl2sjQpU8VqFqsdaygU+yFnBzBcOvEHmee/pmx X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `sun8i_r40_ccu_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Acked-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu-sun8i-r40.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c index 984ad3f76b18..2f51ceab8016 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c @@ -1292,7 +1292,7 @@ static bool sun8i_r40_ccu_regmap_accessible_reg(struct device *dev, return false; } -static struct regmap_config sun8i_r40_ccu_regmap_config = { +static const struct regmap_config sun8i_r40_ccu_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 09:50:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 809408 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.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 848D7174EF3; Wed, 3 Jul 2024 09:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000245; cv=none; b=MQuHMft9aigpodfZhkZzCYjFXkb931LRncWha3RftcHw47LHe1HHgjMDnevJG61plfGxqCaLwXMsEYdlgVobWvY8KmaD5OqRU6veoozi1srD/9LuVGBdZmJLMha51/cZF+PAPMBMClZHZ1UaS3gKCQWpU9tMSq3q3FqlgmI0hYI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720000245; c=relaxed/simple; bh=0Ld8vX9WBeucJVIFv2KTKTHdTYHtYqJmnFDn01dCNek=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cT2HfWtrlqht9K2uLuc3QTdUzGBvUmLwOliPw5VQtQajxEXr5N6pUHdcvQOyYGGmuUQGaFPuWJLJc8B3VGGakpFOZ3jAchzXcaipYRVcB7FwY5uK5mF3KLngHWmYJDtORWJYE4WYut5LNRZ9L5shogDyEGiVxMfkbMvQAto3GLs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WG+PT8Uf; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WG+PT8Uf" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a7541fad560so206109866b.0; Wed, 03 Jul 2024 02:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720000242; x=1720605042; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Z/FFHHxRXCiHESWSSzIR+30DbRf3GOBGMceZW/6eQho=; b=WG+PT8Uf2ZxBQnk3ANyzZ/4kGwV3sYvcBoUETlSdCLKgziZYYHuxgJ1ucjDTys+5Gv AduJIlmXHo5aKobFEM+pFtdhsrMn6o0intTQXVOCxu3VsXtT9A5a/0MPcQjK0dKU6M5+ +avLmllrWsAu3KJdcv9oG3H57r7T0GVX+3tD+72CMb7aWpWFwQv49EICmrnIfdzbQtUg s7KtlkBYhQm82ysmgBhks5iKBVuQwIT4nPEkpuv51pLljun3/BNHSsdRfkWW/vlqU6Ud dmvXu4l221mi8GxVbwV6d6NMzjmp5FjpILja7SuWnGATXFd2jVmO5NDjEi/C/+fubr/A c8Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720000242; x=1720605042; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z/FFHHxRXCiHESWSSzIR+30DbRf3GOBGMceZW/6eQho=; b=Ii0xA3P+k7bzIdOiLSf31QV7YDySJ1UQXLwyRn2v3vBlSAVB+OASMO4bS9IWUp0eNi cE0r3EzbPSFWccBp2TE0B98edGDU0r5eVFz+M3OwnrktQDfRrctacFohQ4rHmdGTA2U8 /RIQLq8OdcZMWpTS+7uNhYAX+HQmw9uqd1NGidQ14dAwsD9AJTsDHih/S5OwgeHYOuLc li0ejgzE8xBe6z8FhHpw7C4nnGGhp8ajWg0Ekj5A8FAd4H5mWAKkrauCGNWslStNCtjj /2StwxBl4aCPq2KyqpTrkc2eyEwdjqU4xGPCjOvcyapu83A2o5rv3DV9GXvR6eIph6zL 70Zg== X-Forwarded-Encrypted: i=1; AJvYcCU9yBudVuKpqOq0UXnc7o7bVR9sI0YaNHKAOFT7ii2patEb+ZWG/0Jt2A6l9CVAzBSejd+NqY6EVxR57ftdsdBIGWUL5h08uJa9f3WQQnQNAmm9L2vuziIQfK1jilvTCO4FrPkXLzSgzmzici2TrXeUO3s4bQBp56N0UqlDWqoYpBtNIdMiBA== X-Gm-Message-State: AOJu0YyFTufrMEsNgzTAGCA+8FTvy3S2t8d3fsQbtJFRCcg2X4fhIKjp In1rDlyG04KdduM8Pqj6pLoqsdku9vSjPupp8Q92T2fj/e9APpro X-Google-Smtp-Source: AGHT+IFvEQQ1or7Te92RZ7ee6rZM9e+5Mnmbmp6JAtgn1kSIV+we403CXkNT3daH3fdDLTkrC72WiA== X-Received: by 2002:a17:906:f847:b0:a75:1096:bbb4 with SMTP id a640c23a62f3a-a75144b9bb8mr700286266b.69.1720000241798; Wed, 03 Jul 2024 02:50:41 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58b4a97b1f3sm2082130a12.18.2024.07.03.02.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 02:50:40 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 11:50:23 +0200 Subject: [PATCH 10/10] clk: xilinx: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-clk-const-regmap-v1-10-7d15a0671d6f@gmail.com> References: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> In-Reply-To: <20240703-clk-const-regmap-v1-0-7d15a0671d6f@gmail.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Vladimir Zapolskiy , Bjorn Andersson , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michal Simek Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720000225; l=760; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=0Ld8vX9WBeucJVIFv2KTKTHdTYHtYqJmnFDn01dCNek=; b=qbAZlsyWzomXPwtnqnjjR10PqlzCLG5uVxcNmtMDRmfWhY+nLBfhZqS5clqsqtfVrERC45aqH MoIjvu7D0tkCoOqeHOgE9Tak9NQ52dqqmYQ7r9zdNOTlkalNvb0TusC X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `vcu_settings_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/clk/xilinx/xlnx_vcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/xilinx/xlnx_vcu.c b/drivers/clk/xilinx/xlnx_vcu.c index 60a3ed7c7263..d983fab12756 100644 --- a/drivers/clk/xilinx/xlnx_vcu.c +++ b/drivers/clk/xilinx/xlnx_vcu.c @@ -68,7 +68,7 @@ struct xvcu_device { struct clk_hw_onecell_data *clk_data; }; -static struct regmap_config vcu_settings_regmap_config = { +static const struct regmap_config vcu_settings_regmap_config = { .name = "regmap", .reg_bits = 32, .val_bits = 32,