summaryrefslogtreecommitdiff
path: root/drivers/video/imxfb.h
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2008-12-16 11:44:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-12-16 15:40:19 +0100
commit72330b0eeefc7abda35b5af55d0e2a9a3d05f04c (patch)
tree3ef28181ee934ccf41b614c98ce542a58baa89cd /drivers/video/imxfb.h
parent74b114fe2cfff9986b2469b3eb0035ca3d325d00 (diff)
downloadlinux-3.10-72330b0eeefc7abda35b5af55d0e2a9a3d05f04c.tar.gz
linux-3.10-72330b0eeefc7abda35b5af55d0e2a9a3d05f04c.tar.bz2
linux-3.10-72330b0eeefc7abda35b5af55d0e2a9a3d05f04c.zip
i.MX Framebuffer: Use readl/writel instead of direct pointer deref
This patch prepares the current i.MX1 framebuffer driver for usage in the whole i.MX family. It switches to readl/writel for register accesses. Also it moves the register definitions to the driver where they belong. Acked-by: Krzysztof Helt <krzysztof.h1@poczta.fm> Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video/imxfb.h')
-rw-r--r--drivers/video/imxfb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/imxfb.h b/drivers/video/imxfb.h
index e837a8b48eb..baa86a0fe29 100644
--- a/drivers/video/imxfb.h
+++ b/drivers/video/imxfb.h
@@ -29,7 +29,8 @@ struct imxfb_rgb {
#define NR_RGB 2
struct imxfb_info {
- struct device *dev;
+ void __iomem *regs;
+
struct imxfb_rgb *rgb[NR_RGB];
u_int max_bpp;