aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/ctdaio.h
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-09-29 05:03:21 -0400
committerTakashi Iwai <tiwai@suse.de>2014-09-30 04:34:29 -0400
commit66640898edb7b0ef452e179753e8d6130b35fd83 (patch)
treea920c67eb3cb63e5081672d6bce8ab72c02d26ce /sound/pci/ctxfi/ctdaio.h
parent7a7686bd0d153c0d6e120da6712c9339aaeaa2f9 (diff)
ALSA: ctxfi: changed void * to struct hw *
in the code we have void *hw and while using we are always typecasting it to (struct hw *). it is better to use void type of pointer when we store different types of pointer , but in this code we are only having struct hw. So changed all the relevant reference of void *hw to struct hw *hw, without any modification of the existing code logic. the next patch of the series will remove the typecasting which is not required now. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctdaio.h')
-rw-r--r--sound/pci/ctxfi/ctdaio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/ctxfi/ctdaio.h b/sound/pci/ctxfi/ctdaio.h
index 85ccb6ee1ab4..e4817de08864 100644
--- a/sound/pci/ctxfi/ctdaio.h
+++ b/sound/pci/ctxfi/ctdaio.h
@@ -53,14 +53,14 @@ struct dao {
53 struct dao_rsc_ops *ops; /* DAO specific operations */ 53 struct dao_rsc_ops *ops; /* DAO specific operations */
54 struct imapper **imappers; 54 struct imapper **imappers;
55 struct daio_mgr *mgr; 55 struct daio_mgr *mgr;
56 void *hw; 56 struct hw *hw;
57 void *ctrl_blk; 57 void *ctrl_blk;
58}; 58};
59 59
60struct dai { 60struct dai {
61 struct daio daio; 61 struct daio daio;
62 struct dai_rsc_ops *ops; /* DAI specific operations */ 62 struct dai_rsc_ops *ops; /* DAI specific operations */
63 void *hw; 63 struct hw *hw;
64 void *ctrl_blk; 64 void *ctrl_blk;
65}; 65};
66 66
@@ -117,7 +117,7 @@ struct daio_mgr {
117}; 117};
118 118
119/* Constructor and destructor of daio resource manager */ 119/* Constructor and destructor of daio resource manager */
120int daio_mgr_create(void *hw, struct daio_mgr **rdaio_mgr); 120int daio_mgr_create(struct hw *hw, struct daio_mgr **rdaio_mgr);
121int daio_mgr_destroy(struct daio_mgr *daio_mgr); 121int daio_mgr_destroy(struct daio_mgr *daio_mgr);
122 122
123#endif /* CTDAIO_H */ 123#endif /* CTDAIO_H */