mbox series

[0/2] pinctrl: Constify read-only struct regmap_config

Message ID 20240704-pinctrl-const-regmap_config-v1-0-9d5570f0b9f3@gmail.com
Headers show
Series pinctrl: Constify read-only struct regmap_config | expand

Message

Javier Carrasco July 4, 2024, 6:36 p.m. UTC
This series adds the const modifier to the remaining regmap_config
structs in the pinctrl subsystem that are effectively used as const
(i.e., only read after their declaration), but kept ad writtable data.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (2):
      pinctrl: ti-iodelay: Constify struct regmap_config
      pinctrl: realtek: Constify struct regmap_config

 drivers/pinctrl/realtek/pinctrl-rtd.c   | 2 +-
 drivers/pinctrl/ti/pinctrl-ti-iodelay.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233
change-id: 20240704-pinctrl-const-regmap_config-836a87d7e7e5

Best regards,

Comments

Linus Walleij Aug. 5, 2024, 7:08 a.m. UTC | #1
On Thu, Jul 4, 2024 at 8:36 PM Javier Carrasco
<javier.carrasco.cruz@gmail.com> wrote:

> This series adds the const modifier to the remaining regmap_config
> structs in the pinctrl subsystem that are effectively used as const
> (i.e., only read after their declaration), but kept ad writtable data.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>

Patches applied.

Yours,
Linus Walleij