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/ctdaio.h | |
parent | 16771c7c704769c5f3d70c024630b6e5b3eafa67 (diff) |
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/ctdaio.h')
-rw-r--r-- | sound/pci/ctxfi/ctdaio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctdaio.h b/sound/pci/ctxfi/ctdaio.h index 0ebbf350f51a..a30be73b08ea 100644 --- a/sound/pci/ctxfi/ctdaio.h +++ b/sound/pci/ctxfi/ctdaio.h @@ -51,7 +51,7 @@ struct daio { struct dao { struct daio daio; - struct dao_rsc_ops *ops; /* DAO specific operations */ + const struct dao_rsc_ops *ops; /* DAO specific operations */ struct imapper **imappers; struct daio_mgr *mgr; struct hw *hw; @@ -60,7 +60,7 @@ struct dao { struct dai { struct daio daio; - struct dai_rsc_ops *ops; /* DAI specific operations */ + const struct dai_rsc_ops *ops; /* DAI specific operations */ struct hw *hw; void *ctrl_blk; }; |