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>
Esse commit está contido em:
@@ -296,7 +296,7 @@ static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int amixer_mgr_create(void *hw, struct amixer_mgr **ramixer_mgr)
|
||||
int amixer_mgr_create(struct hw *hw, struct amixer_mgr **ramixer_mgr)
|
||||
{
|
||||
int err;
|
||||
struct amixer_mgr *amixer_mgr;
|
||||
@@ -449,7 +449,7 @@ static int put_sum_rsc(struct sum_mgr *mgr, struct sum *sum)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int sum_mgr_create(void *hw, struct sum_mgr **rsum_mgr)
|
||||
int sum_mgr_create(struct hw *hw, struct sum_mgr **rsum_mgr)
|
||||
{
|
||||
int err;
|
||||
struct sum_mgr *sum_mgr;
|
||||
|
Referência em uma nova issue
Block a user