summaryrefslogtreecommitdiff
path: root/sound/pci/ctxfi/ctresource.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-09 01:40:41 +0300
committerTakashi Iwai <tiwai@suse.de>2015-11-11 10:40:56 +0300
commit43f2cdeb7a61598050028f1eae51b9cb5398af42 (patch)
treefeab7519d5699ecb867fcbaf105ed8d2f46fe20d /sound/pci/ctxfi/ctresource.h
parent16771c7c704769c5f3d70c024630b6e5b3eafa67 (diff)
downloadlinux-43f2cdeb7a61598050028f1eae51b9cb5398af42.tar.xz
ALSA: ctxfi: constify rsc ops structures
The various rsc ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctresource.h')
-rw-r--r--sound/pci/ctxfi/ctresource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ctxfi/ctresource.h b/sound/pci/ctxfi/ctresource.h
index 9b746c3719e6..736d9f7e9e16 100644
--- a/sound/pci/ctxfi/ctresource.h
+++ b/sound/pci/ctxfi/ctresource.h
@@ -39,7 +39,7 @@ struct rsc {
u32 msr:4; /* The Master Sample Rate a resource working on */
void *ctrl_blk; /* Chip specific control info block for a resource */
struct hw *hw; /* Chip specific object for hardware access means */
- struct rsc_ops *ops; /* Generic resource operations */
+ const struct rsc_ops *ops; /* Generic resource operations */
};
struct rsc_ops {