Skip to content

Commit

Permalink
OMAPDSS: DISPLAY: Ignore newly added omap_video_timings fields for di…
Browse files Browse the repository at this point in the history
…splay timings sysfs file

The display sysfs file for viewing/storing display timings is something which
will be deprecated. The new omap_video_timings fields (hsync_level, vsync_level
and others) are not configurable or viewable via this sysfs file.

This prevents the need to make the input more configurable to take the new
fields and at the same time work without these fields for backward
compatibility.

In display_timings_store, the omap_video_timings struct used to set the timings
is initialized to the existing panel timings so that the new fields are taken in
correctly. The other fields are taken from the user as before.

Signed-off-by: Archit Taneja <archit@ti.com>
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Jun 29, 2012
1 parent a8d5e41 commit a14909e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/omap2/dss/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static ssize_t display_timings_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t size)
{
struct omap_dss_device *dssdev = to_dss_device(dev);
struct omap_video_timings t;
struct omap_video_timings t = dssdev->panel.timings;
int r, found;

if (!dssdev->driver->set_timings || !dssdev->driver->check_timings)
Expand Down

0 comments on commit a14909e

Please sign in to comment.