Commit 7ba5a51a authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] bttv-driver.c: make some variables static

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e071988c
...@@ -313,12 +313,12 @@ const struct bttv_tvnorm bttv_tvnorms[] = { ...@@ -313,12 +313,12 @@ const struct bttv_tvnorm bttv_tvnorms[] = {
.sram = -1, .sram = -1,
} }
}; };
const unsigned int BTTV_TVNORMS = ARRAY_SIZE(bttv_tvnorms); static const unsigned int BTTV_TVNORMS = ARRAY_SIZE(bttv_tvnorms);
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
/* bttv format list /* bttv format list
packed pixel formats must come first */ packed pixel formats must come first */
const struct bttv_format bttv_formats[] = { static const struct bttv_format bttv_formats[] = {
{ {
.name = "8 bpp, gray", .name = "8 bpp, gray",
.palette = VIDEO_PALETTE_GREY, .palette = VIDEO_PALETTE_GREY,
...@@ -470,7 +470,7 @@ const struct bttv_format bttv_formats[] = { ...@@ -470,7 +470,7 @@ const struct bttv_format bttv_formats[] = {
.flags = FORMAT_FLAGS_RAW, .flags = FORMAT_FLAGS_RAW,
} }
}; };
const unsigned int BTTV_FORMATS = ARRAY_SIZE(bttv_formats); static const unsigned int BTTV_FORMATS = ARRAY_SIZE(bttv_formats);
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
......
...@@ -89,7 +89,6 @@ struct bttv_tvnorm { ...@@ -89,7 +89,6 @@ struct bttv_tvnorm {
int sram; int sram;
}; };
extern const struct bttv_tvnorm bttv_tvnorms[]; extern const struct bttv_tvnorm bttv_tvnorms[];
extern const unsigned int BTTV_TVNORMS;
struct bttv_format { struct bttv_format {
char *name; char *name;
...@@ -101,8 +100,6 @@ struct bttv_format { ...@@ -101,8 +100,6 @@ struct bttv_format {
int flags; int flags;
int hshift,vshift; /* for planar modes */ int hshift,vshift; /* for planar modes */
}; };
extern const struct bttv_format bttv_formats[];
extern const unsigned int BTTV_FORMATS;
/* ---------------------------------------------------------- */ /* ---------------------------------------------------------- */
......
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