diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-08 23:40:41 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-11-11 08:40:56 +0100 |
commit | 43f2cdeb7a61598050028f1eae51b9cb5398af42 (patch) | |
tree | feab7519d5699ecb867fcbaf105ed8d2f46fe20d /sound/pci/ctxfi/ctsrc.h | |
parent | 16771c7c704769c5f3d70c024630b6e5b3eafa67 (diff) | |
download | linux-43f2cdeb7a61598050028f1eae51b9cb5398af42.tar.gz |
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/ctsrc.h')
-rw-r--r-- | sound/pci/ctxfi/ctsrc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctsrc.h b/sound/pci/ctxfi/ctsrc.h index da7573c5db9b..92944a012bc4 100644 --- a/sound/pci/ctxfi/ctsrc.h +++ b/sound/pci/ctxfi/ctsrc.h @@ -48,7 +48,7 @@ struct src_rsc_ops; struct src { struct rsc rsc; /* Basic resource info */ struct src *intlv; /* Pointer to next interleaved SRC in a series */ - struct src_rsc_ops *ops; /* SRC specific operations */ + const struct src_rsc_ops *ops; /* SRC specific operations */ /* Number of contiguous srcs for interleaved usage */ unsigned char multi; unsigned char mode; /* Working mode of this SRC resource */ @@ -110,7 +110,7 @@ struct srcimp { struct imapper *imappers; unsigned int mapped; /* A bit-map indicating which conj rsc is mapped */ struct srcimp_mgr *mgr; - struct srcimp_rsc_ops *ops; + const struct srcimp_rsc_ops *ops; }; struct srcimp_rsc_ops { |