Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9932c8b authored by Leonardo Brás's avatar Leonardo Brás Committed by Greg Kroah-Hartman
Browse files

staging: fbtft: Changes gamma table to define.



Most of other "Gamma Tables" were already boxed on a define, just did the same to PIOLED.

Signed-off-by: default avatarLeonardo Brás <leobras.c@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e66f30ee
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -262,6 +262,10 @@ static const s16 waveshare32b_init_sequence[] = {
	-3
};

#define PIOLED_GAMMA	"0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 " \
			"2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 " \
			"3 3 3 4 4 4 4 4 4 4 4 4 4 4 4"

/* Supported displays in alphabetical order */
static struct fbtft_device_display displays[] = {
	{
@@ -890,14 +894,7 @@ static struct fbtft_device_display displays[] = {
					{ "dc", 25 },
					{},
				},
				.gamma =	"0 2 2 2 2 2 2 2 "
						"2 2 2 2 2 2 2 2 "
						"2 2 2 2 2 2 2 2 "
						"2 2 2 2 2 2 2 3 "
						"3 3 3 3 3 3 3 3 "
						"3 3 3 3 3 3 3 3 "
						"3 3 3 4 4 4 4 4 "
						"4 4 4 4 4 4 4"
				.gamma = PIOLED_GAMMA
			}
		}
	}, {