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>
这个提交包含在:
Julia Lawall
2015-11-08 23:40:41 +01:00
提交者 Takashi Iwai
父节点 16771c7c70
当前提交 43f2cdeb7a
修改 8 个文件,包含 18 行新增18 行删除

查看文件

@@ -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 {