diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-09-29 05:03:21 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-30 04:34:29 -0400 |
commit | 66640898edb7b0ef452e179753e8d6130b35fd83 (patch) | |
tree | a920c67eb3cb63e5081672d6bce8ab72c02d26ce /sound/pci/ctxfi/ctsrc.c | |
parent | 7a7686bd0d153c0d6e120da6712c9339aaeaa2f9 (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/ctsrc.c')
-rw-r--r-- | sound/pci/ctxfi/ctsrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctsrc.c b/sound/pci/ctxfi/ctsrc.c index 19df9b4ed800..342008f81f23 100644 --- a/sound/pci/ctxfi/ctsrc.c +++ b/sound/pci/ctxfi/ctsrc.c | |||
@@ -543,7 +543,7 @@ static int src_mgr_commit_write(struct src_mgr *mgr) | |||
543 | return 0; | 543 | return 0; |
544 | } | 544 | } |
545 | 545 | ||
546 | int src_mgr_create(void *hw, struct src_mgr **rsrc_mgr) | 546 | int src_mgr_create(struct hw *hw, struct src_mgr **rsrc_mgr) |
547 | { | 547 | { |
548 | int err, i; | 548 | int err, i; |
549 | struct src_mgr *src_mgr; | 549 | struct src_mgr *src_mgr; |
@@ -825,7 +825,7 @@ static int srcimp_imap_delete(struct srcimp_mgr *mgr, struct imapper *entry) | |||
825 | return err; | 825 | return err; |
826 | } | 826 | } |
827 | 827 | ||
828 | int srcimp_mgr_create(void *hw, struct srcimp_mgr **rsrcimp_mgr) | 828 | int srcimp_mgr_create(struct hw *hw, struct srcimp_mgr **rsrcimp_mgr) |
829 | { | 829 | { |
830 | int err; | 830 | int err; |
831 | struct srcimp_mgr *srcimp_mgr; | 831 | struct srcimp_mgr *srcimp_mgr; |