diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-09-23 16:30:24 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-23 16:00:31 +0200 |
commit | 7a7686bd0d153c0d6e120da6712c9339aaeaa2f9 (patch) | |
tree | a170a1a9e2ac98edaf93dfad35911d40c2f43f88 /sound/pci/ctxfi/cthardware.h | |
parent | 95f72cf2cdf0e612aeaf36d8af51689882fd64db (diff) |
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>
Diffstat (limited to 'sound/pci/ctxfi/cthardware.h')
-rw-r--r-- | sound/pci/ctxfi/cthardware.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ctxfi/cthardware.h b/sound/pci/ctxfi/cthardware.h index 5977e9a24b5c..c5ded6a6654f 100644 --- a/sound/pci/ctxfi/cthardware.h +++ b/sound/pci/ctxfi/cthardware.h @@ -186,7 +186,7 @@ struct hw { struct pci_dev *pci; /* the pci kernel structure of this card */ int irq; unsigned long io_base; - unsigned long mem_base; + void __iomem *mem_base; enum CHIPTYP chip_type; enum CTCARDS model; |