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

Commit cc611b8a authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (10049): gspca - many subdrivers: Set 'const' the pixel format table.

parent 4c98834a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ static struct ctrl sd_ctrls[] = {
	},
};

static struct v4l2_pix_format vga_mode[] = {
static const struct v4l2_pix_format vga_mode[] = {
	{176, 144, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
		.bytesperline = 176,
		.sizeimage = 176 * 144 * 3 / 8 + 590,
+2 −2
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ static struct ctrl sd_ctrls[] = {
	 },
};

static struct v4l2_pix_format vga_mode[] = {
static const struct v4l2_pix_format vga_mode[] = {
	{320, 240, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE,
		.bytesperline = 320,
		.sizeimage = 320 * 240,
@@ -125,7 +125,7 @@ static struct v4l2_pix_format vga_mode[] = {
		.priv = 0}, */
};

static struct v4l2_pix_format sif_mode[] = {
static const struct v4l2_pix_format sif_mode[] = {
	{176, 144, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE,
		.bytesperline = 176,
		.sizeimage = 176 * 144,
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ struct usb_fpix {
}

/* These cameras only support 320x200. */
static struct v4l2_pix_format fpix_mode[1] = {
static const struct v4l2_pix_format fpix_mode[1] = {
	{ 320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
		.bytesperline = 320,
		.sizeimage = 320 * 240 * 3 / 8 + 590,
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ extern int gspca_debug;
/* device information - set at probe time */
struct cam {
	int bulk_size;		/* buffer size when image transfer by bulk */
	struct v4l2_pix_format *cam_mode;	/* size nmodes */
	const struct v4l2_pix_format *cam_mode;	/* size nmodes */
	char nmodes;
	__u8 bulk_nurbs;	/* number of URBs in bulk mode
				 * - cannot be > MAX_NURBS
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ struct sd {
static struct ctrl sd_ctrls[] = {
};

static struct v4l2_pix_format vga_mode[] = {
static const struct v4l2_pix_format vga_mode[] = {
	{320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE,
		.bytesperline = 320,
		.sizeimage = 320 * 240 * 3 / 8 + 589,
Loading