diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-09 01:40:41 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-11-11 10:40:56 +0300 |
commit | 43f2cdeb7a61598050028f1eae51b9cb5398af42 (patch) | |
tree | feab7519d5699ecb867fcbaf105ed8d2f46fe20d /sound/pci/ctxfi/ctresource.h | |
parent | 16771c7c704769c5f3d70c024630b6e5b3eafa67 (diff) | |
download | linux-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.h | 2 |
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 { |