linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] mfd: Constify struct regmap_config
@ 2024-07-03 15:37 Javier Carrasco
  2024-07-03 15:37 ` [PATCH 1/7] mfd: da9062-core: " Javier Carrasco
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-07-03 15:37 UTC (permalink / raw)
  To: Support Opensource, Lee Jones, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matti Vaittinen, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel, Javier Carrasco

This series adds the const modifier to the remaining regmap_config
structs within mfd that are effectively used as const (i.e., only
read after their declaration), but kept as writtable data.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (7):
      mfd: da9062-core: Constify struct regmap_config
      mfd: fsl-imx25-tsadc: Constify struct regmap_config
      mfd: hi655x-pmic: Constify struct regmap_config
      mfd: wcd934x: Constify struct regmap_config
      mfd: tps6105x: Constify struct regmap_config
      mfd: rohm-bd9576: Constify struct regmap_config
      mfd: intel-m10-bmc: Constify struct regmap_config

 drivers/mfd/da9062-core.c        | 4 ++--
 drivers/mfd/fsl-imx25-tsadc.c    | 2 +-
 drivers/mfd/hi655x-pmic.c        | 2 +-
 drivers/mfd/intel-m10-bmc-pmci.c | 2 +-
 drivers/mfd/intel-m10-bmc-spi.c  | 2 +-
 drivers/mfd/rohm-bd9576.c        | 2 +-
 drivers/mfd/tps6105x.c           | 2 +-
 drivers/mfd/wcd934x.c            | 2 +-
 8 files changed, 9 insertions(+), 9 deletions(-)
---
base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233
change-id: 20240703-mfd-const-regmap_config-96da5e18a85f

Best regards,
-- 
Javier Carrasco <javier.carrasco.cruz@gmail.com>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/7] mfd: da9062-core: Constify struct regmap_config
  2024-07-03 15:37 [PATCH 0/7] mfd: Constify struct regmap_config Javier Carrasco
@ 2024-07-03 15:37 ` Javier Carrasco
  2024-07-03 15:37 ` [PATCH 2/7] mfd: fsl-imx25-tsadc: " Javier Carrasco
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-07-03 15:37 UTC (permalink / raw)
  To: Support Opensource, Lee Jones, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matti Vaittinen, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel, Javier Carrasco

`da9061_regmap_config` and `da9062_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 <javier.carrasco.cruz@gmail.com>
---
 drivers/mfd/da9062-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c
index dbbc4779170a..5e55c6cbf5e0 100644
--- a/drivers/mfd/da9062-core.c
+++ b/drivers/mfd/da9062-core.c
@@ -470,7 +470,7 @@ static const struct regmap_range_cfg da9061_range_cfg[] = {
 	}
 };
 
-static struct regmap_config da9061_regmap_config = {
+static const struct regmap_config da9061_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.ranges = da9061_range_cfg,
@@ -576,7 +576,7 @@ static const struct regmap_range_cfg da9062_range_cfg[] = {
 	}
 };
 
-static struct regmap_config da9062_regmap_config = {
+static const struct regmap_config da9062_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.ranges = da9062_range_cfg,

-- 
2.40.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/7] mfd: fsl-imx25-tsadc: Constify struct regmap_config
  2024-07-03 15:37 [PATCH 0/7] mfd: Constify struct regmap_config Javier Carrasco
  2024-07-03 15:37 ` [PATCH 1/7] mfd: da9062-core: " Javier Carrasco
@ 2024-07-03 15:37 ` Javier Carrasco
  2024-07-03 15:37 ` [PATCH 3/7] mfd: hi655x-pmic: " Javier Carrasco
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-07-03 15:37 UTC (permalink / raw)
  To: Support Opensource, Lee Jones, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matti Vaittinen, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel, Javier Carrasco

`mx25_tsadc_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 <javier.carrasco.cruz@gmail.com>
---
 drivers/mfd/fsl-imx25-tsadc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c
index 74f38bf3778f..2e4ab2404154 100644
--- a/drivers/mfd/fsl-imx25-tsadc.c
+++ b/drivers/mfd/fsl-imx25-tsadc.c
@@ -16,7 +16,7 @@
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 
-static struct regmap_config mx25_tsadc_regmap_config = {
+static const struct regmap_config mx25_tsadc_regmap_config = {
 	.fast_io = true,
 	.max_register = 8,
 	.reg_bits = 32,

-- 
2.40.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/7] mfd: hi655x-pmic: Constify struct regmap_config
  2024-07-03 15:37 [PATCH 0/7] mfd: Constify struct regmap_config Javier Carrasco
  2024-07-03 15:37 ` [PATCH 1/7] mfd: da9062-core: " Javier Carrasco
  2024-07-03 15:37 ` [PATCH 2/7] mfd: fsl-imx25-tsadc: " Javier Carrasco
@ 2024-07-03 15:37 ` Javier Carrasco
  2024-07-03 15:37 ` [PATCH 4/7] mfd: wcd934x: " Javier Carrasco
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-07-03 15:37 UTC (permalink / raw)
  To: Support Opensource, Lee Jones, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matti Vaittinen, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel, Javier Carrasco

`hi655x_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 <javier.carrasco.cruz@gmail.com>
---
 drivers/mfd/hi655x-pmic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c
index 042109304db4..5f61909c85e9 100644
--- a/drivers/mfd/hi655x-pmic.c
+++ b/drivers/mfd/hi655x-pmic.c
@@ -41,7 +41,7 @@ static const struct regmap_irq_chip hi655x_irq_chip = {
 	.mask_base = HI655X_IRQ_MASK_BASE,
 };
 
-static struct regmap_config hi655x_regmap_config = {
+static const struct regmap_config hi655x_regmap_config = {
 	.reg_bits = 32,
 	.reg_stride = HI655X_STRIDE,
 	.val_bits = 8,

-- 
2.40.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/7] mfd: wcd934x: Constify struct regmap_config
  2024-07-03 15:37 [PATCH 0/7] mfd: Constify struct regmap_config Javier Carrasco
                   ` (2 preceding siblings ...)
  2024-07-03 15:37 ` [PATCH 3/7] mfd: hi655x-pmic: " Javier Carrasco
@ 2024-07-03 15:37 ` Javier Carrasco
  2024-07-03 15:37 ` [PATCH 5/7] mfd: tps6105x: " Javier Carrasco
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-07-03 15:37 UTC (permalink / raw)
  To: Support Opensource, Lee Jones, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matti Vaittinen, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel, Javier Carrasco

`wcd934x_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 <javier.carrasco.cruz@gmail.com>
---
 drivers/mfd/wcd934x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/wcd934x.c b/drivers/mfd/wcd934x.c
index 7b9873b72c37..fcd182d51981 100644
--- a/drivers/mfd/wcd934x.c
+++ b/drivers/mfd/wcd934x.c
@@ -109,7 +109,7 @@ static const struct regmap_range_cfg wcd934x_ranges[] = {
 	},
 };
 
-static struct regmap_config wcd934x_regmap_config = {
+static const struct regmap_config wcd934x_regmap_config = {
 	.reg_bits = 16,
 	.val_bits = 8,
 	.cache_type = REGCACHE_MAPLE,

-- 
2.40.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 5/7] mfd: tps6105x: Constify struct regmap_config
  2024-07-03 15:37 [PATCH 0/7] mfd: Constify struct regmap_config Javier Carrasco
                   ` (3 preceding siblings ...)
  2024-07-03 15:37 ` [PATCH 4/7] mfd: wcd934x: " Javier Carrasco
@ 2024-07-03 15:37 ` Javier Carrasco
  2024-07-03 15:37 ` [PATCH 6/7] mfd: rohm-bd9576: " Javier Carrasco
  2024-07-03 15:37 ` [PATCH 7/7] mfd: intel-m10-bmc: " Javier Carrasco
  6 siblings, 0 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-07-03 15:37 UTC (permalink / raw)
  To: Support Opensource, Lee Jones, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matti Vaittinen, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel, Javier Carrasco

`tps6105x_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 <javier.carrasco.cruz@gmail.com>
---
 drivers/mfd/tps6105x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/tps6105x.c b/drivers/mfd/tps6105x.c
index 0da1cecb5af6..e2f6858d101e 100644
--- a/drivers/mfd/tps6105x.c
+++ b/drivers/mfd/tps6105x.c
@@ -23,7 +23,7 @@
 #include <linux/mfd/core.h>
 #include <linux/mfd/tps6105x.h>
 
-static struct regmap_config tps6105x_regmap_config = {
+static const struct regmap_config tps6105x_regmap_config = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.max_register = TPS6105X_REG_3,

-- 
2.40.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 6/7] mfd: rohm-bd9576: Constify struct regmap_config
  2024-07-03 15:37 [PATCH 0/7] mfd: Constify struct regmap_config Javier Carrasco
                   ` (4 preceding siblings ...)
  2024-07-03 15:37 ` [PATCH 5/7] mfd: tps6105x: " Javier Carrasco
@ 2024-07-03 15:37 ` Javier Carrasco
  2024-07-04  4:50   ` Matti Vaittinen
  2024-07-03 15:37 ` [PATCH 7/7] mfd: intel-m10-bmc: " Javier Carrasco
  6 siblings, 1 reply; 10+ messages in thread
From: Javier Carrasco @ 2024-07-03 15:37 UTC (permalink / raw)
  To: Support Opensource, Lee Jones, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matti Vaittinen, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel, Javier Carrasco

`bd957x_regmap` is not modified and can be declared as const
to move its data to a read-only section.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 drivers/mfd/rohm-bd9576.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c
index 3a9f61961721..634c65c7d108 100644
--- a/drivers/mfd/rohm-bd9576.c
+++ b/drivers/mfd/rohm-bd9576.c
@@ -57,7 +57,7 @@ static const struct regmap_access_table volatile_regs = {
 	.n_yes_ranges = ARRAY_SIZE(volatile_ranges),
 };
 
-static struct regmap_config bd957x_regmap = {
+static const struct regmap_config bd957x_regmap = {
 	.reg_bits = 8,
 	.val_bits = 8,
 	.volatile_table = &volatile_regs,

-- 
2.40.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 7/7] mfd: intel-m10-bmc: Constify struct regmap_config
  2024-07-03 15:37 [PATCH 0/7] mfd: Constify struct regmap_config Javier Carrasco
                   ` (5 preceding siblings ...)
  2024-07-03 15:37 ` [PATCH 6/7] mfd: rohm-bd9576: " Javier Carrasco
@ 2024-07-03 15:37 ` Javier Carrasco
  6 siblings, 0 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-07-03 15:37 UTC (permalink / raw)
  To: Support Opensource, Lee Jones, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matti Vaittinen, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel, Javier Carrasco

`m10bmc_pmci_regmap_config` and `intel_m10bmc_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 <javier.carrasco.cruz@gmail.com>
---
 drivers/mfd/intel-m10-bmc-pmci.c | 2 +-
 drivers/mfd/intel-m10-bmc-spi.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/intel-m10-bmc-pmci.c b/drivers/mfd/intel-m10-bmc-pmci.c
index 698c5933938b..4fa9d380c62b 100644
--- a/drivers/mfd/intel-m10-bmc-pmci.c
+++ b/drivers/mfd/intel-m10-bmc-pmci.c
@@ -336,7 +336,7 @@ static const struct regmap_access_table m10bmc_pmci_access_table = {
 	.n_yes_ranges	= ARRAY_SIZE(m10bmc_pmci_regmap_range),
 };
 
-static struct regmap_config m10bmc_pmci_regmap_config = {
+static const struct regmap_config m10bmc_pmci_regmap_config = {
 	.reg_bits = 32,
 	.reg_stride = 4,
 	.val_bits = 32,
diff --git a/drivers/mfd/intel-m10-bmc-spi.c b/drivers/mfd/intel-m10-bmc-spi.c
index d64d28199df6..36f631ef7a67 100644
--- a/drivers/mfd/intel-m10-bmc-spi.c
+++ b/drivers/mfd/intel-m10-bmc-spi.c
@@ -24,7 +24,7 @@ static const struct regmap_access_table m10bmc_access_table = {
 	.n_yes_ranges	= ARRAY_SIZE(m10bmc_regmap_range),
 };
 
-static struct regmap_config intel_m10bmc_regmap_config = {
+static const struct regmap_config intel_m10bmc_regmap_config = {
 	.reg_bits = 32,
 	.val_bits = 32,
 	.reg_stride = 4,

-- 
2.40.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 6/7] mfd: rohm-bd9576: Constify struct regmap_config
  2024-07-03 15:37 ` [PATCH 6/7] mfd: rohm-bd9576: " Javier Carrasco
@ 2024-07-04  4:50   ` Matti Vaittinen
  2024-07-04  9:03     ` Javier Carrasco
  0 siblings, 1 reply; 10+ messages in thread
From: Matti Vaittinen @ 2024-07-04  4:50 UTC (permalink / raw)
  To: Javier Carrasco, Support Opensource, Lee Jones, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel

On 7/3/24 18:37, Javier Carrasco wrote:
> `bd957x_regmap` is not modified and can be declared as const
> to move its data to a read-only section.
> 
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
>   drivers/mfd/rohm-bd9576.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c
> index 3a9f61961721..634c65c7d108 100644
> --- a/drivers/mfd/rohm-bd9576.c
> +++ b/drivers/mfd/rohm-bd9576.c
> @@ -57,7 +57,7 @@ static const struct regmap_access_table volatile_regs = {
>   	.n_yes_ranges = ARRAY_SIZE(volatile_ranges),
>   };
>   
> -static struct regmap_config bd957x_regmap = {
> +static const struct regmap_config bd957x_regmap = {
>   	.reg_bits = 8,
>   	.val_bits = 8,
>   	.volatile_table = &volatile_regs,
> 

Thanks a ton Javier. This looks good to me but if you feel like going an 
extra mile while you are at it... Do you think this could be extended to:


diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c
index 3a9f61961721..17323ae39803 100644
--- a/drivers/mfd/rohm-bd9576.c
+++ b/drivers/mfd/rohm-bd9576.c
@@ -57,7 +57,7 @@ static const struct regmap_access_table volatile_regs = {
         .n_yes_ranges = ARRAY_SIZE(volatile_ranges),
  };

-static struct regmap_config bd957x_regmap = {
+static const struct regmap_config bd957x_regmap = {
         .reg_bits = 8,
         .val_bits = 8,
         .volatile_table = &volatile_regs,
@@ -65,7 +65,7 @@ static struct regmap_config bd957x_regmap = {
         .cache_type = REGCACHE_MAPLE,
  };

-static struct regmap_irq bd9576_irqs[] = {
+static const struct regmap_irq bd9576_irqs[] = {
         REGMAP_IRQ_REG(BD9576_INT_THERM, 0, BD957X_MASK_INT_MAIN_THERM),
         REGMAP_IRQ_REG(BD9576_INT_OVP, 0, BD957X_MASK_INT_MAIN_OVP),
         REGMAP_IRQ_REG(BD9576_INT_SCP, 0, BD957X_MASK_INT_MAIN_SCP),
@@ -76,7 +76,7 @@ static struct regmap_irq bd9576_irqs[] = {
         REGMAP_IRQ_REG(BD9576_INT_SYS, 0, BD957X_MASK_INT_MAIN_SYS),
  };

-static struct regmap_irq_chip bd9576_irq_chip = {
+static const struct regmap_irq_chip bd9576_irq_chip = {
         .name = "bd9576_irq",
         .irqs = &bd9576_irqs[0],
         .num_irqs = ARRAY_SIZE(bd9576_irqs),


Yours,
	-- Matti

-- 
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 6/7] mfd: rohm-bd9576: Constify struct regmap_config
  2024-07-04  4:50   ` Matti Vaittinen
@ 2024-07-04  9:03     ` Javier Carrasco
  0 siblings, 0 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-07-04  9:03 UTC (permalink / raw)
  To: Matti Vaittinen, Support Opensource, Lee Jones, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Xu Yilun,
	Tom Rix
  Cc: linux-kernel, imx, linux-arm-kernel

On 04/07/2024 06:50, Matti Vaittinen wrote:
> On 7/3/24 18:37, Javier Carrasco wrote:
>> `bd957x_regmap` is not modified and can be declared as const
>> to move its data to a read-only section.
>>
>> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
>> ---
>>   drivers/mfd/rohm-bd9576.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c
>> index 3a9f61961721..634c65c7d108 100644
>> --- a/drivers/mfd/rohm-bd9576.c
>> +++ b/drivers/mfd/rohm-bd9576.c
>> @@ -57,7 +57,7 @@ static const struct regmap_access_table
>> volatile_regs = {
>>       .n_yes_ranges = ARRAY_SIZE(volatile_ranges),
>>   };
>>   -static struct regmap_config bd957x_regmap = {
>> +static const struct regmap_config bd957x_regmap = {
>>       .reg_bits = 8,
>>       .val_bits = 8,
>>       .volatile_table = &volatile_regs,
>>
> 
> Thanks a ton Javier. This looks good to me but if you feel like going an
> extra mile while you are at it... Do you think this could be extended to:
> 
> 
> diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c
> index 3a9f61961721..17323ae39803 100644
> --- a/drivers/mfd/rohm-bd9576.c
> +++ b/drivers/mfd/rohm-bd9576.c
> @@ -57,7 +57,7 @@ static const struct regmap_access_table volatile_regs = {
>         .n_yes_ranges = ARRAY_SIZE(volatile_ranges),
>  };
> 
> -static struct regmap_config bd957x_regmap = {
> +static const struct regmap_config bd957x_regmap = {
>         .reg_bits = 8,
>         .val_bits = 8,
>         .volatile_table = &volatile_regs,
> @@ -65,7 +65,7 @@ static struct regmap_config bd957x_regmap = {
>         .cache_type = REGCACHE_MAPLE,
>  };
> 
> -static struct regmap_irq bd9576_irqs[] = {
> +static const struct regmap_irq bd9576_irqs[] = {
>         REGMAP_IRQ_REG(BD9576_INT_THERM, 0, BD957X_MASK_INT_MAIN_THERM),
>         REGMAP_IRQ_REG(BD9576_INT_OVP, 0, BD957X_MASK_INT_MAIN_OVP),
>         REGMAP_IRQ_REG(BD9576_INT_SCP, 0, BD957X_MASK_INT_MAIN_SCP),
> @@ -76,7 +76,7 @@ static struct regmap_irq bd9576_irqs[] = {
>         REGMAP_IRQ_REG(BD9576_INT_SYS, 0, BD957X_MASK_INT_MAIN_SYS),
>  };
> 
> -static struct regmap_irq_chip bd9576_irq_chip = {
> +static const struct regmap_irq_chip bd9576_irq_chip = {
>         .name = "bd9576_irq",
>         .irqs = &bd9576_irqs[0],
>         .num_irqs = ARRAY_SIZE(bd9576_irqs),
> 
> 
> Yours,
>     -- Matti
> 

Sure, I will generalize it and update the series to cover regmap_irq and
regmap_irq_chip as well, of course including these two cases too.

Best regards,
Javier Carrasco


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-07-04  9:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03 15:37 [PATCH 0/7] mfd: Constify struct regmap_config Javier Carrasco
2024-07-03 15:37 ` [PATCH 1/7] mfd: da9062-core: " Javier Carrasco
2024-07-03 15:37 ` [PATCH 2/7] mfd: fsl-imx25-tsadc: " Javier Carrasco
2024-07-03 15:37 ` [PATCH 3/7] mfd: hi655x-pmic: " Javier Carrasco
2024-07-03 15:37 ` [PATCH 4/7] mfd: wcd934x: " Javier Carrasco
2024-07-03 15:37 ` [PATCH 5/7] mfd: tps6105x: " Javier Carrasco
2024-07-03 15:37 ` [PATCH 6/7] mfd: rohm-bd9576: " Javier Carrasco
2024-07-04  4:50   ` Matti Vaittinen
2024-07-04  9:03     ` Javier Carrasco
2024-07-03 15:37 ` [PATCH 7/7] mfd: intel-m10-bmc: " Javier Carrasco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).