Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56054
b: refs/heads/master
c: 5f12491
h: refs/heads/master
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed May 9, 2007
1 parent 740d819 commit 4a4ef4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 452c0fb46b1d68b1dae37cea7ccebd70a80397e4
refs/heads/master: 5f12491c36acb94670d822a90c9295f6fd671c8a
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/v4l1-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ set_v4l_control(struct inode *inode,

/* ----------------------------------------------------------------- */

static int palette2pixelformat[] = {
const static unsigned int palette2pixelformat[] = {
[VIDEO_PALETTE_GREY] = V4L2_PIX_FMT_GREY,
[VIDEO_PALETTE_RGB555] = V4L2_PIX_FMT_RGB555,
[VIDEO_PALETTE_RGB565] = V4L2_PIX_FMT_RGB565,
Expand All @@ -145,7 +145,7 @@ static int palette2pixelformat[] = {
[VIDEO_PALETTE_YUV422P] = V4L2_PIX_FMT_YUV422P,
};

static unsigned int
static unsigned int __attribute_pure__
palette_to_pixelformat(unsigned int palette)
{
if (palette < ARRAY_SIZE(palette2pixelformat))
Expand All @@ -154,8 +154,8 @@ palette_to_pixelformat(unsigned int palette)
return 0;
}

static unsigned int
pixelformat_to_palette(int pixelformat)
static unsigned int __attribute_const__
pixelformat_to_palette(unsigned int pixelformat)
{
int palette = 0;
switch (pixelformat)
Expand Down

0 comments on commit 4a4ef4e

Please sign in to comment.