drm/omap: Make the video_mode pointer to .set_timings() const
The .set_timings() operations of the omap_dss_device instances don't need to modify the passed timings. Make the pointer const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

orang tua
9c626dee5c
melakukan
8fe1d36100
@@ -479,7 +479,7 @@ static void dpi_display_disable(struct omap_dss_device *dssdev)
|
||||
}
|
||||
|
||||
static void dpi_set_timings(struct omap_dss_device *dssdev,
|
||||
struct videomode *vm)
|
||||
const struct videomode *vm)
|
||||
{
|
||||
struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev);
|
||||
|
||||
|
@@ -263,7 +263,7 @@ static int hdmi_display_check_timings(struct omap_dss_device *dssdev,
|
||||
}
|
||||
|
||||
static void hdmi_display_set_timings(struct omap_dss_device *dssdev,
|
||||
struct videomode *vm)
|
||||
const struct videomode *vm)
|
||||
{
|
||||
struct omap_hdmi *hdmi = dssdev_to_hdmi(dssdev);
|
||||
|
||||
|
@@ -262,7 +262,7 @@ static int hdmi_display_check_timings(struct omap_dss_device *dssdev,
|
||||
}
|
||||
|
||||
static void hdmi_display_set_timings(struct omap_dss_device *dssdev,
|
||||
struct videomode *vm)
|
||||
const struct videomode *vm)
|
||||
{
|
||||
struct omap_hdmi *hdmi = dssdev_to_hdmi(dssdev);
|
||||
|
||||
|
@@ -368,7 +368,7 @@ struct omap_dss_device_ops {
|
||||
void (*get_timings)(struct omap_dss_device *dssdev,
|
||||
struct videomode *vm);
|
||||
void (*set_timings)(struct omap_dss_device *dssdev,
|
||||
struct videomode *vm);
|
||||
const struct videomode *vm);
|
||||
|
||||
bool (*detect)(struct omap_dss_device *dssdev);
|
||||
|
||||
|
@@ -230,7 +230,7 @@ static void sdi_display_disable(struct omap_dss_device *dssdev)
|
||||
}
|
||||
|
||||
static void sdi_set_timings(struct omap_dss_device *dssdev,
|
||||
struct videomode *vm)
|
||||
const struct videomode *vm)
|
||||
{
|
||||
struct sdi_device *sdi = dssdev_to_sdi(dssdev);
|
||||
|
||||
|
@@ -569,7 +569,7 @@ static void venc_display_disable(struct omap_dss_device *dssdev)
|
||||
}
|
||||
|
||||
static void venc_set_timings(struct omap_dss_device *dssdev,
|
||||
struct videomode *vm)
|
||||
const struct videomode *vm)
|
||||
{
|
||||
struct venc_device *venc = dssdev_to_venc(dssdev);
|
||||
struct videomode actual_vm;
|
||||
|
Reference in New Issue
Block a user