[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6a5eb6a3-17e9-852f-2257-1a164789872c@gmail.com>
Date: Wed, 19 Dec 2018 16:43:35 +0200
From: Oleksandr Andrushchenko <andr2000@...il.com>
To: Gerd Hoffmann <kraxel@...hat.com>, dri-devel@...ts.freedesktop.org,
David Airlie <airlied@...hat.com>
Cc: David Airlie <airlied@...ux.ie>,
open list <linux-kernel@...r.kernel.org>,
"open list:DRM DRIVER FOR BOCHS VIRTUAL GPU"
<virtualization@...ts.linux-foundation.org>
Subject: Re: [PATCH 01/14] drm/bochs: encoder cleanup
Hi, Gerd!
On 12/19/18 1:51 PM, Gerd Hoffmann wrote:
> Most unused callbacks can be NULL pointers these days.
> Drop a bunch of empty encoder callbacks.
>
> Signed-off-by: Gerd Hoffmann <kraxel@...hat.com>
> ---
> drivers/gpu/drm/bochs/bochs_kms.c | 26 --------------------------
> 1 file changed, 26 deletions(-)
>
> diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c
> index f87c284dd9..c8ce54498d 100644
> --- a/drivers/gpu/drm/bochs/bochs_kms.c
> +++ b/drivers/gpu/drm/bochs/bochs_kms.c
> @@ -170,31 +170,6 @@ static void bochs_crtc_init(struct drm_device *dev)
> drm_crtc_helper_add(crtc, &bochs_helper_funcs);
> }
>
> -static void bochs_encoder_mode_set(struct drm_encoder *encoder,
> - struct drm_display_mode *mode,
> - struct drm_display_mode *adjusted_mode)
> -{
> -}
> -
> -static void bochs_encoder_dpms(struct drm_encoder *encoder, int state)
> -{
> -}
> -
> -static void bochs_encoder_prepare(struct drm_encoder *encoder)
> -{
> -}
> -
> -static void bochs_encoder_commit(struct drm_encoder *encoder)
> -{
> -}
> -
> -static const struct drm_encoder_helper_funcs bochs_encoder_helper_funcs = {
> - .dpms = bochs_encoder_dpms,
> - .mode_set = bochs_encoder_mode_set,
> - .prepare = bochs_encoder_prepare,
> - .commit = bochs_encoder_commit,
> -};
> -
> static const struct drm_encoder_funcs bochs_encoder_encoder_funcs = {
> .destroy = drm_encoder_cleanup,
> };
> @@ -207,7 +182,6 @@ static void bochs_encoder_init(struct drm_device *dev)
> encoder->possible_crtcs = 0x1;
> drm_encoder_init(dev, encoder, &bochs_encoder_encoder_funcs,
> DRM_MODE_ENCODER_DAC, NULL);
> - drm_encoder_helper_add(encoder, &bochs_encoder_helper_funcs);
> }
>
>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@...m.com>
Powered by blists - more mailing lists