diff options
Diffstat (limited to 'drivers/media/pci/ddbridge/ddbridge-io.h')
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge-io.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge-io.h b/drivers/media/pci/ddbridge/ddbridge-io.h index ce92e9484075..a4c6bbe09168 100644 --- a/drivers/media/pci/ddbridge/ddbridge-io.h +++ b/drivers/media/pci/ddbridge/ddbridge-io.h @@ -27,32 +27,32 @@ static inline u32 ddblreadl(struct ddb_link *link, u32 adr) { - return readl((char *) (link->dev->regs + (adr))); + return readl(link->dev->regs + adr); } static inline void ddblwritel(struct ddb_link *link, u32 val, u32 adr) { - writel(val, (char *) (link->dev->regs + (adr))); + writel(val, link->dev->regs + adr); } static inline u32 ddbreadl(struct ddb *dev, u32 adr) { - return readl((char *) (dev->regs + (adr))); + return readl(dev->regs + adr); } static inline void ddbwritel(struct ddb *dev, u32 val, u32 adr) { - writel(val, (char *) (dev->regs + (adr))); + writel(val, dev->regs + adr); } static inline void ddbcpyto(struct ddb *dev, u32 adr, void *src, long count) { - return memcpy_toio((char *) (dev->regs + adr), src, count); + return memcpy_toio(dev->regs + adr, src, count); } static inline void ddbcpyfrom(struct ddb *dev, void *dst, u32 adr, long count) { - return memcpy_fromio(dst, (char *) (dev->regs + adr), count); + return memcpy_fromio(dst, dev->regs + adr, count); } static inline u32 safe_ddbreadl(struct ddb *dev, u32 adr) |