From: Tobias Klauser Date: Mon, 21 Apr 2008 22:30:21 +0000 (+0000) Subject: V4L: Storage class should be before const qualifier X-Git-Tag: v2.6.26-rc1~1114^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c81010bf41ec1e888e46898f57cd0e2cdac326a4;p=linux-2.6-omap-h63xx.git V4L: Storage class should be before const qualifier The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser Signed-off-by: Jesper Juhl --- diff --git a/drivers/media/video/v4l1-compat.c b/drivers/media/video/v4l1-compat.c index 50e1ff9f2be..e3ac5e68607 100644 --- a/drivers/media/video/v4l1-compat.c +++ b/drivers/media/video/v4l1-compat.c @@ -126,7 +126,7 @@ set_v4l_control(struct inode *inode, /* ----------------------------------------------------------------- */ -const static unsigned int palette2pixelformat[] = { +static const unsigned int palette2pixelformat[] = { [VIDEO_PALETTE_GREY] = V4L2_PIX_FMT_GREY, [VIDEO_PALETTE_RGB555] = V4L2_PIX_FMT_RGB555, [VIDEO_PALETTE_RGB565] = V4L2_PIX_FMT_RGB565,