video: pxa3xx-gcu: pass around struct device *
authorDaniel Mack <zonque@gmail.com>
Wed, 5 Mar 2014 16:12:47 +0000 (17:12 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 7 Mar 2014 13:04:45 +0000 (15:04 +0200)
commit9e4f9675be46d4aaa5832410f384b1b6e9c893a7
tree8413ca2f4ad7b16b83995444d8d4bd53a5922083
parent109393afc87388b6dbbdaa59a290c5a977841f8d
video: pxa3xx-gcu: pass around struct device *

Instead of passing around struct platform_device, use struct device.
That saves one level of dereference. Also, call platform devices pdev,
and provide a shortcut for &pdev->dev.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/pxa3xx-gcu.c