Commit a641de2e authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

[PATCH] namespace pollution in STV0680 camera driver

Variables should not be defined in a header file.
This slightly improves the driver by making them
static instead of global.
parent a219a910
......@@ -147,7 +147,7 @@ struct usb_stv {
};
unsigned char red[256] = {
static unsigned char red[256] = {
0, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 25, 30, 35, 38, 42,
44, 47, 50, 53, 54, 57, 59, 61, 63, 65, 67, 69,
......@@ -172,7 +172,7 @@ unsigned char red[256] = {
220, 220, 221, 221
};
unsigned char green[256] = {
static unsigned char green[256] = {
0, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
21, 21, 21, 21, 21, 21, 21, 28, 34, 39, 43, 47,
50, 53, 56, 59, 61, 64, 66, 68, 71, 73, 75, 77,
......@@ -197,7 +197,7 @@ unsigned char green[256] = {
245, 245, 246, 246
};
unsigned char blue[256] = {
static unsigned char blue[256] = {
0, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 30, 37, 42, 47, 51,
55, 58, 61, 64, 67, 70, 72, 74, 78, 80, 82, 84,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment