aboutsummaryrefslogtreecommitdiff
path: root/sound/pci/ctxfi/ctresource.c
diff options
context:
space:
mode:
authorSudip Mukherjee2014-09-29 14:33:21 +0530
committerTakashi Iwai2014-09-30 10:34:29 +0200
commit66640898edb7b0ef452e179753e8d6130b35fd83 (patch)
treea920c67eb3cb63e5081672d6bce8ab72c02d26ce /sound/pci/ctxfi/ctresource.c
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/ctresource.c')
-rw-r--r--sound/pci/ctxfi/ctresource.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctresource.c b/sound/pci/ctxfi/ctresource.c
index e49d2be1bfd4..f14cbea433b2 100644
--- a/sound/pci/ctxfi/ctresource.c
+++ b/sound/pci/ctxfi/ctresource.c
@@ -134,7 +134,8 @@ static struct rsc_ops rsc_generic_ops = {
.next_conj = rsc_next_conj,
};
-int rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, void *hw)
+int
+rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw)
{
int err = 0;
@@ -206,7 +207,7 @@ int rsc_uninit(struct rsc *rsc)
}
int rsc_mgr_init(struct rsc_mgr *mgr, enum RSCTYP type,
- unsigned int amount, void *hw_obj)
+ unsigned int amount, struct hw *hw_obj)
{
int err = 0;
struct hw *hw = hw_obj;