Skip to contentSkip to conversation

Staging: fbtft: Remove unused macros

PATCH In review Shraddha Barke 2 participants 3 messages Oct 17, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: fbtft: Remove unused macros

Remove the macros since they are defined but not used

---
 drivers/staging/fbtft/fb_watterott.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/fbtft/fb_watterott.c +0 -3
index f8cb610..40c1223 100644
@@ -31,12 +31,9 @@
 
 #define CMD_VERSION		0x01
 #define CMD_LCD_LED		0x10
-#define CMD_LCD_RESET		0x11
 #define CMD_LCD_ORIENTATION	0x20
 #define CMD_LCD_DRAWIMAGE	0x27
-#define COLOR_RGB323		8
 #define COLOR_RGB332		9
-#define COLOR_RGB233		10
 #define COLOR_RGB565		16
 
 static short mode = 565;
Signature · 1 line
2.1.4
maintainer
#1 lore raw
Quoted 3 lines · Shraddha Barke

Remove the macros since they are defined but not used

Like I mentioned for other patches yesterday, this is not ok, please leave #defines that describe hardware present in the driver, even if they are not used, as they help people understand how the hardware works and might be needed in the future.

thanks,

greg k-h

#2 lore raw
Quoted 9 lines · Greg KH
Quoted 3 lines · Shraddha Barke

Remove the macros since they are defined but not used

Like I mentioned for other patches yesterday, this is not ok, please leave #defines that describe hardware present in the driver, even if they are not used, as they help people understand how the hardware works and might be needed in the future.

Yes I got it. Sorry about that.

Shraddha

Quoted 5 lines

thanks,

greg k-h