Hi Laurent,
On Thu, Nov 22, 2012 at 06:58:09PM +0100, Laurent Pinchart wrote:
Hi Steffen,
On Thursday 22 November 2012 17:00:13 Steffen Trumtrar wrote:
Add helper to get fb_videomode from devicetree.
Signed-off-by: Steffen Trumtrar s.trumtrar@pengutronix.de Reviewed-by: Thierry Reding thierry.reding@avionic-design.de Acked-by: Thierry Reding thierry.reding@avionic-design.de Tested-by: Thierry Reding thierry.reding@avionic-design.de Tested-by: Philipp Zabel p.zabel@pengutronix.de Reviewed-by: Laurent Pinchart laurent.pinchart@ideasonboard.com Acked-by: Laurent Pinchart laurent.pinchart@ideasonboard.com
This patch results in the following build warning:
drivers/video/fbmon.c: In function 'of_get_fb_videomode': drivers/video/fbmon.c:1445: warning: passing argument 1 of 'of_get_videomode' discards qualifiers from pointer target type include/linux/of_videomode.h:15: note: expected 'struct device_node *' but argument is of type 'const struct device_node *'
This I don't get. Well, looking at the code, the warning is correct. I fixed that now. But, I do not get the warning. Just tried it again before fixing: cleaned, cleaned and touching file, just "make drivers/video/fbmon.o". Nothing. Weird.
So, thanks for reporting it.
Regards, Steffen