[PATCH xf86-video-amdgpu] Remove unused struct members from drmmode_display.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Michel Dänzer
> Sent: Wednesday, May 10, 2017 5:14 AM
> To: amd-gfx at lists.freedesktop.org
> Subject: [PATCH xf86-video-amdgpu] Remove unused struct members from
> drmmode_display.h
> 
> From: Michel Dänzer <michel.daenzer at amd.com>
> 
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/drmmode_display.c | 1 -
>  src/drmmode_display.h | 3 ---
>  2 files changed, 4 deletions(-)
> 
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index 5b2431495..9996d2f70 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -2370,7 +2370,6 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn,
> drmmode_ptr drmmode, int cpp)
>  	xf86CrtcConfigInit(pScrn, &drmmode_xf86crtc_config_funcs);
> 
>  	drmmode->scrn = pScrn;
> -	drmmode->cpp = cpp;
>  	mode_res = drmModeGetResources(pAMDGPUEnt->fd);
>  	if (!mode_res)
>  		return FALSE;
> diff --git a/src/drmmode_display.h b/src/drmmode_display.h
> index fa15a4f72..2d5698f61 100644
> --- a/src/drmmode_display.h
> +++ b/src/drmmode_display.h
> @@ -38,8 +38,6 @@
> 
>  typedef struct {
>  	unsigned fb_id;
> -	drmModeFBPtr mode_fb;
> -	int cpp;
>  	ScrnInfoPtr scrn;
>  #ifdef HAVE_LIBUDEV
>  	struct udev_monitor *uevent_monitor;
> @@ -55,7 +53,6 @@ typedef struct {
>  } drmmode_rec, *drmmode_ptr;
> 
>  typedef struct {
> -	int fd;
>  	unsigned old_fb_id;
>  	int flip_count;
>  	void *event_data;
> --
> 2.11.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux