Skip to contentSkip to conversation

Remove unused struct members from drmmode_display.h

PATCH In review Michel Dänzer 2 participants 2 messages May 11, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unused struct members from drmmode_display.h

From: Michel Dänzer <[email protected]>

(Ported from amdgpu commit 462ac3341e5bfbded9086d3d9043821d19352b3e)

---
 src/drmmode_display.c | 1 -
 src/drmmode_display.h | 2 --
 2 files changed, 3 deletions(-)
src/drmmode_display.c +0 -1
index e2899cf50..d0ecfa855 100644
@@ -2540,7 +2540,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(drmmode->fd);
 	if (!mode_res)
 		return FALSE;
src/drmmode_display.h +0 -2
index df2c4b7bb..db68054a7 100644
@@ -41,8 +41,6 @@
 
 typedef struct {
   int fd;
-  drmModeFBPtr mode_fb;
-  int cpp;
   struct radeon_bo_manager *bufmgr;
   ScrnInfoPtr scrn;
 #ifdef HAVE_LIBUDEV
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20170511100302.20862-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org

Reviewed-by Alex Deucher
#2 lore raw
Quoted 8 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Michel Dänzer
Sent: Thursday, May 11, 2017 6:03 AM
To: [email protected]
Subject: [PATCH xf86-video-ati] Remove unused struct members from drmmode_display.h

Quoted 6 lines

From: Michel Dänzer <[email protected]>

(Ported from amdgpu commit
462ac3341e5bfbded9086d3d9043821d19352b3e)

Quoted 34 lines
---
 src/drmmode_display.c | 1 -
 src/drmmode_display.h | 2 --
 2 files changed, 3 deletions(-)
src/drmmode_display.c +0 -1
index e2899cf50..d0ecfa855 100644
@@ -2540,7 +2540,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(drmmode->fd);
 	if (!mode_res)
src/drmmode_display.c +0 -0
 		return FALSE;
src/drmmode_display.h +0 -3
index df2c4b7bb..db68054a7 100644
@@ -41,8 +41,6 @@
 
 typedef struct {
   int fd;
-  drmModeFBPtr mode_fb;
-  int cpp;
   struct radeon_bo_manager *bufmgr;
   ScrnInfoPtr scrn;
 #ifdef HAVE_LIBUDEV
--

2.11.0

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx