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

Commit 7dbb3920 authored by Tomas Winkler's avatar Tomas Winkler Committed by Mauro Carvalho Chehab
Browse files

[media] easycap: compress initialization tables



1. saa and stk initialization tables are less then
256 entries
2. stk table can fit into u16 and saa into u8

size before
 text	   data	    bss	    dec	    hex	filename
 105687	   1072	1134800	1241559	 12f1d7	easycap.ko

size after

 text	   data	    bss	    dec	    hex	filename
 97919	   1072	1134800	1233791	 12d37f	easycap.ko

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 47cefc21
Loading
Loading
Loading
Loading
+8 −8
Original line number Original line Diff line number Diff line
@@ -60,9 +60,9 @@


/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
static const struct stk1160config {
static const struct stk1160config {
	int reg;
	u16 reg;
	int set;
	u16 set;
} stk1160configPAL[256] = {
} stk1160configPAL[] = {
		{0x000, 0x0098},
		{0x000, 0x0098},
		{0x002, 0x0093},
		{0x002, 0x0093},


@@ -104,7 +104,7 @@ static const struct stk1160config {
		{0xFFF, 0xFFFF}
		{0xFFF, 0xFFFF}
};
};
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
static const struct stk1160config stk1160configNTSC[256] = {
static const struct stk1160config stk1160configNTSC[] = {
		{0x000, 0x0098},
		{0x000, 0x0098},
		{0x002, 0x0093},
		{0x002, 0x0093},


@@ -147,9 +147,9 @@ static const struct stk1160config stk1160configNTSC[256] = {
};
};
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
static const struct saa7113config {
static const struct saa7113config {
	int reg;
	u8 reg;
	int set;
	u8 set;
} saa7113configPAL[256] = {
} saa7113configPAL[] = {
		{0x01, 0x08},
		{0x01, 0x08},
		{0x02, 0x80},
		{0x02, 0x80},
		{0x03, 0x33},
		{0x03, 0x33},
@@ -203,7 +203,7 @@ static const struct saa7113config {
		{0xFF, 0xFF}
		{0xFF, 0xFF}
};
};
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
static const struct saa7113config saa7113configNTSC[256] = {
static const struct saa7113config saa7113configNTSC[] = {
		{0x01, 0x08},
		{0x01, 0x08},
		{0x02, 0x80},
		{0x02, 0x80},
		{0x03, 0x33},
		{0x03, 0x33},