[PATCH v2 10/60] drm/omap: dss: Remove unused omapdss_default_get_timings()

Sebastian Reichel sre at kernel.org
Sun Jun 10 16:18:01 UTC 2018


Hi,

On Sat, May 26, 2018 at 08:24:28PM +0300, Laurent Pinchart wrote:
> All omap_dss_driver instances provide the get_timings operation. Remove
> the default function.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---

Reviewed-by: Sebastian Reichel <sebastian.reichel at collabora.co.uk>

-- Sebastian

>  drivers/gpu/drm/omapdrm/dss/display.c | 10 ----------
>  1 file changed, 10 deletions(-)
> 
> diff --git a/drivers/gpu/drm/omapdrm/dss/display.c b/drivers/gpu/drm/omapdrm/dss/display.c
> index 25c3be86d7f4..e07e3319d6e0 100644
> --- a/drivers/gpu/drm/omapdrm/dss/display.c
> +++ b/drivers/gpu/drm/omapdrm/dss/display.c
> @@ -28,19 +28,12 @@
>  
>  #include "omapdss.h"
>  
> -static void omapdss_default_get_timings(struct omap_dss_device *dssdev,
> -					struct videomode *vm)
> -{
> -	*vm = dssdev->panel.vm;
> -}
> -
>  static LIST_HEAD(panel_list);
>  static DEFINE_MUTEX(panel_list_mutex);
>  static int disp_num_counter;
>  
>  int omapdss_register_display(struct omap_dss_device *dssdev)
>  {
> -	struct omap_dss_driver *drv = dssdev->driver;
>  	int id;
>  
>  	/*
> @@ -60,9 +53,6 @@ int omapdss_register_display(struct omap_dss_device *dssdev)
>  		dssdev->name = devm_kasprintf(dssdev->dev, GFP_KERNEL,
>  					      "display%u", id);
>  
> -	if (drv && drv->get_timings == NULL)
> -		drv->get_timings = omapdss_default_get_timings;
> -
>  	mutex_lock(&panel_list_mutex);
>  	list_add_tail(&dssdev->panel_list, &panel_list);
>  	mutex_unlock(&panel_list_mutex);
> -- 
> Regards,
> 
> Laurent Pinchart
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180610/c78c1437/attachment.sig>


More information about the dri-devel mailing list