projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4919353
)
ALSA: hda: cs35l41: Constify regmap_irq_chip
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Wed, 28 May 2025 19:44:03 +0000
(21:44 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 2 Jun 2025 14:44:48 +0000
(16:44 +0200)
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>
Link:
https://patch.msgid.link/20250528194402.567062-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/cs35l41_hda.c
b/sound/pci/hda/cs35l41_hda.c
index d9c8872b1866a1b270eaa5c3324f83fb1997b362..d5bc81099d0d68b2f7fd2ae0b841b46f12a581be 100644
(file)
--- 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,