summaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/ctresource.h
diff options
context:
space:
mode:
authorJulia Lawall2015-11-08 23:40:41 +0100
committerTakashi Iwai2015-11-11 08:40:56 +0100
commit43f2cdeb7a61598050028f1eae51b9cb5398af42 (patch)
treefeab7519d5699ecb867fcbaf105ed8d2f46fe20d /sound/pci/ctxfi/ctresource.h
parentALSA: usb: Add native DSD support for Aune X1S (diff)
downloadkernel-qcow2-linux-43f2cdeb7a61598050028f1eae51b9cb5398af42.tar.gz
kernel-qcow2-linux-43f2cdeb7a61598050028f1eae51b9cb5398af42.tar.xz
kernel-qcow2-linux-43f2cdeb7a61598050028f1eae51b9cb5398af42.zip
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 {