Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: fbtft: Remove unused and duplicated defines

This patch makes use of the standard MIPI Display Command Set to remove
some of duplicate defines from the headers.

Signed-off-by: Priit Laes <plaes@plaes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Priit Laes and committed by
Greg Kroah-Hartman
817d1648 3b2bf2bc

-40
-32
drivers/staging/fbtft/fb_hx8357d.h
··· 22 22 #define HX8357_TFTWIDTH 320 23 23 #define HX8357_TFTHEIGHT 480 24 24 25 - #define HX8357B_NOP 0x00 26 - #define HX8357B_SWRESET 0x01 27 - #define HX8357B_RDDID 0x04 28 - #define HX8357B_RDDST 0x09 29 - 30 - #define HX8357B_RDPOWMODE 0x0A 31 - #define HX8357B_RDMADCTL 0x0B 32 - #define HX8357B_RDCOLMOD 0x0C 33 - #define HX8357B_RDDIM 0x0D 34 - #define HX8357B_RDDSDR 0x0F 35 - 36 - #define HX8357_SLPIN 0x10 37 - #define HX8357_SLPOUT 0x11 38 - #define HX8357B_PTLON 0x12 39 - #define HX8357B_NORON 0x13 40 - 41 - #define HX8357_INVOFF 0x20 42 - #define HX8357_INVON 0x21 43 - #define HX8357_DISPOFF 0x28 44 - #define HX8357_DISPON 0x29 45 - 46 - #define HX8357_CASET 0x2A 47 - #define HX8357_PASET 0x2B 48 - #define HX8357_RAMWR 0x2C 49 - #define HX8357_RAMRD 0x2E 50 - 51 - #define HX8357B_PTLAR 0x30 52 - #define HX8357_TEON 0x35 53 - #define HX8357_TEARLINE 0x44 54 - #define HX8357_MADCTL 0x36 55 - #define HX8357_COLMOD 0x3A 56 - 57 25 #define HX8357_SETOSC 0xB0 58 26 #define HX8357_SETPWR1 0xB1 59 27 #define HX8357B_SETDISPLAY 0xB2
-8
drivers/staging/fbtft/fbtft.h
··· 20 20 #include <linux/spi/spi.h> 21 21 #include <linux/platform_device.h> 22 22 23 - #define FBTFT_NOP 0x00 24 - #define FBTFT_SWRESET 0x01 25 - #define FBTFT_RDDID 0x04 26 - #define FBTFT_RDDST 0x09 27 - #define FBTFT_CASET 0x2A 28 - #define FBTFT_RASET 0x2B 29 - #define FBTFT_RAMWR 0x2C 30 - 31 23 #define FBTFT_ONBOARD_BACKLIGHT 2 32 24 33 25 #define FBTFT_GPIO_NO_MATCH 0xFFFF