public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda: cs35l41: Constify regmap_irq_chip
@ 2025-05-28 19:44 Krzysztof Kozlowski
  2025-06-02 14:45 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-28 19:44 UTC (permalink / raw)
  To: David Rhodes, Richard Fitzgerald, Jaroslav Kysela, Takashi Iwai,
	linux-sound, patches, linux-kernel
  Cc: Krzysztof Kozlowski

Static 'struct regmap_irq_chip' is not modified so can be changed to
const for more safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 sound/pci/hda/cs35l41_hda.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c
index d9c8872b1866..d5bc81099d0d 100644
--- a/sound/pci/hda/cs35l41_hda.c
+++ b/sound/pci/hda/cs35l41_hda.c
@@ -1603,7 +1603,7 @@ static const struct regmap_irq cs35l41_reg_irqs[] = {
 	CS35L41_REG_IRQ(IRQ1_STATUS1, AMP_SHORT_ERR),
 };
 
-static struct regmap_irq_chip cs35l41_regmap_irq_chip = {
+static const struct regmap_irq_chip cs35l41_regmap_irq_chip = {
 	.name = "cs35l41 IRQ1 Controller",
 	.status_base = CS35L41_IRQ1_STATUS1,
 	.mask_base = CS35L41_IRQ1_MASK1,
-- 
2.45.2


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

* Re: [PATCH] ALSA: hda: cs35l41: Constify regmap_irq_chip
  2025-05-28 19:44 [PATCH] ALSA: hda: cs35l41: Constify regmap_irq_chip Krzysztof Kozlowski
@ 2025-06-02 14:45 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2025-06-02 14:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: David Rhodes, Richard Fitzgerald, Jaroslav Kysela, Takashi Iwai,
	linux-sound, patches, linux-kernel

On Wed, 28 May 2025 21:44:03 +0200,
Krzysztof Kozlowski wrote:
> 
> Static 'struct regmap_irq_chip' is not modified so can be changed to
> const for more safety.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Applied now.  Thanks.


Takashi

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

end of thread, other threads:[~2025-06-02 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28 19:44 [PATCH] ALSA: hda: cs35l41: Constify regmap_irq_chip Krzysztof Kozlowski
2025-06-02 14:45 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox