diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c b/drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c index 96f0e7e7f889..13e32d02c884 100644 --- a/drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c +++ b/drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c | |||
| @@ -24,7 +24,7 @@ struct panel_drv_data { | |||
| 24 | int pd_gpio; | 24 | int pd_gpio; |
| 25 | int data_lines; | 25 | int data_lines; |
| 26 | 26 | ||
| 27 | struct videomode timings; | 27 | struct videomode vm; |
| 28 | }; | 28 | }; |
| 29 | 29 | ||
| 30 | #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) | 30 | #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) |
| @@ -81,7 +81,7 @@ static int tfp410_enable(struct omap_dss_device *dssdev) | |||
| 81 | if (omapdss_device_is_enabled(dssdev)) | 81 | if (omapdss_device_is_enabled(dssdev)) |
| 82 | return 0; | 82 | return 0; |
| 83 | 83 | ||
| 84 | in->ops.dpi->set_timings(in, &ddata->timings); | 84 | in->ops.dpi->set_timings(in, &ddata->vm); |
| 85 | if (ddata->data_lines) | 85 | if (ddata->data_lines) |
| 86 | in->ops.dpi->set_data_lines(in, ddata->data_lines); | 86 | in->ops.dpi->set_data_lines(in, ddata->data_lines); |
| 87 | 87 | ||
| @@ -113,44 +113,43 @@ static void tfp410_disable(struct omap_dss_device *dssdev) | |||
| 113 | dssdev->state = OMAP_DSS_DISPLAY_DISABLED; | 113 | dssdev->state = OMAP_DSS_DISPLAY_DISABLED; |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | static void tfp410_fix_timings(struct videomode *timings) | 116 | static void tfp410_fix_timings(struct videomode *vm) |
| 117 | { | 117 | { |
| 118 | timings->flags |= DISPLAY_FLAGS_DE_HIGH | | 118 | vm->flags |= DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE | |
| 119 | DISPLAY_FLAGS_PIXDATA_POSEDGE | | 119 | DISPLAY_FLAGS_SYNC_POSEDGE; |
| 120 | DISPLAY_FLAGS_SYNC_POSEDGE; | ||
| 121 | } | 120 | } |
| 122 | 121 | ||
| 123 | static void tfp410_set_timings(struct omap_dss_device *dssdev, | 122 | static void tfp410_set_timings(struct omap_dss_device *dssdev, |
| 124 | struct videomode *timings) | 123 | struct videomode *vm) |
| 125 | { | 124 | { |
| 126 | struct panel_drv_data *ddata = to_panel_data(dssdev); | 125 | struct panel_drv_data *ddata = to_panel_data(dssdev); |
| 127 | struct omap_dss_device *in = ddata->in; | 126 | struct omap_dss_device *in = ddata->in; |
| 128 | 127 | ||
| 129 | tfp410_fix_timings(timings); | 128 | tfp410_fix_timings(vm); |
| 130 | 129 | ||
| 131 | ddata->timings = *timings; | 130 | ddata->vm = *vm; |
| 132 | dssdev->panel.timings = *timings; | 131 | dssdev->panel.vm = *vm; |
| 133 | 132 | ||
| 134 | in->ops.dpi->set_timings(in, timings); | 133 | in->ops.dpi->set_timings(in, vm); |
| 135 | } | 134 | } |
| 136 | 135 | ||
| 137 | static void tfp410_get_timings(struct omap_dss_device *dssdev, | 136 | static void tfp410_get_timings(struct omap_dss_device *dssdev, |
| 138 | struct videomode *timings) | 137 | struct videomode *vm) |
| 139 | { | 138 | { |
| 140 | struct panel_drv_data *ddata = to_panel_data(dssdev); | 139 | struct panel_drv_data *ddata = to_panel_data(dssdev); |
| 141 | 140 | ||
| 142 | *timings = ddata->timings; | 141 | *vm = ddata->vm; |
| 143 | } | 142 | } |
| 144 | 143 | ||
| 145 | static int tfp410_check_timings(struct omap_dss_device *dssdev, | 144 | static int tfp410_check_timings(struct omap_dss_device *dssdev, |
| 146 | struct videomode *timings) | 145 | struct videomode *vm) |
| 147 | { | 146 | { |
| 148 | struct panel_drv_data *ddata = to_panel_data(dssdev); | 147 | struct panel_drv_data *ddata = to_panel_data(dssdev); |
| 149 | struct omap_dss_device *in = ddata->in; | 148 | struct omap_dss_device *in = ddata->in; |
| 150 | 149 | ||
| 151 | tfp410_fix_timings(timings); | 150 | tfp410_fix_timings(vm); |
| 152 | 151 | ||
| 153 | return in->ops.dpi->check_timings(in, timings); | 152 | return in->ops.dpi->check_timings(in, vm); |
| 154 | } | 153 | } |
| 155 | 154 | ||
| 156 | static const struct omapdss_dvi_ops tfp410_dvi_ops = { | 155 | static const struct omapdss_dvi_ops tfp410_dvi_ops = { |
