diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-09-29 11:03:21 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-30 10:34:29 +0200 |
commit | 66640898edb7b0ef452e179753e8d6130b35fd83 (patch) | |
tree | a920c67eb3cb63e5081672d6bce8ab72c02d26ce /sound/pci/ctxfi/ctatc.c | |
parent | ALSA: ctxfi: sparse warning (diff) | |
download | linux-66640898edb7b0ef452e179753e8d6130b35fd83.tar.xz linux-66640898edb7b0ef452e179753e8d6130b35fd83.zip |
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/ctatc.c')
-rw-r--r-- | sound/pci/ctxfi/ctatc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c index d92a08c7a39c..04e54ccf5120 100644 --- a/sound/pci/ctxfi/ctatc.c +++ b/sound/pci/ctxfi/ctatc.c @@ -106,11 +106,11 @@ static struct { .public_name = "Mixer"} }; -typedef int (*create_t)(void *, void **); +typedef int (*create_t)(struct hw *, void **); typedef int (*destroy_t)(void *); static struct { - int (*create)(void *hw, void **rmgr); + int (*create)(struct hw *hw, void **rmgr); int (*destroy)(void *mgr); } rsc_mgr_funcs[NUM_RSCTYP] = { [SRC] = { .create = (create_t)src_mgr_create, |