ALSA: ctxfi: sparse warning
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 23 Sep 2014 11:00:24 +0000 (16:30 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Sep 2014 14:00:31 +0000 (16:00 +0200)
commit7a7686bd0d153c0d6e120da6712c9339aaeaa2f9
treea170a1a9e2ac98edaf93dfad35911d40c2f43f88
parent95f72cf2cdf0e612aeaf36d8af51689882fd64db
ALSA: ctxfi: sparse warning

fixed sparse warning of incorrect type (different address spaces) in
cthw20k1.c and cthw20k2.c which was being actually caused as mem_base
was of the type unsigned long.

Again as mem_base was previously unsigned long , so it required many
typecasts in the code to convert interger to pointer.

Now after giving the correct type of mem_base as void __iomem *
we can also remove those typecasts maintaining the same functionality
and logic of the code.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/cthardware.h
sound/pci/ctxfi/cthw20k1.c
sound/pci/ctxfi/cthw20k2.c