Re: [PATCH v3] of: Add videomode helper

2012-09-17 Thread Steffen Trumtrar
On Mon, Sep 17, 2012 at 06:35:43PM +, Tabi Timur-B04825 wrote: > On Fri, Sep 14, 2012 at 11:24 AM, Steffen Trumtrar > wrote: > > > +/* FIXME */ > > +static u32 of_video_get_value(struct mode_property *prop) > > +{ > > + return (prop->min >= prop->typ) ? prop->min : prop->typ; > > +} > >

Re: [PATCH v3] of: Add videomode helper

2012-09-17 Thread Tabi Timur-B04825
On Fri, Sep 14, 2012 at 11:24 AM, Steffen Trumtrar wrote: > +/* FIXME */ > +static u32 of_video_get_value(struct mode_property *prop) > +{ > + return (prop->min >= prop->typ) ? prop->min : prop->typ; > +} > + > +/* read property into new mode_property */ > +static int of_video_parse_propert

[PATCH v3] of: Add videomode helper

2012-09-14 Thread Steffen Trumtrar
This patch adds a helper function for parsing videomodes from the devicetree. The videomode can be either converted to a struct drm_display_mode or a struct fb_videomode. Signed-off-by: Sascha Hauer Signed-off-by: Steffen Trumtrar --- Hi! The original patch was done by Sascha Hauer. I reworked