diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2013-08-30 16:54:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-09-26 06:19:09 -0400 |
commit | 1966bc2a48f12d5d11c4fbe0880955cc4bfda0f9 (patch) | |
tree | 6a1c4e50b81e194b1d60f0e62fd566f662b3657a /drivers/media/usb/gspca/m5602/m5602_mt9m111.c | |
parent | 08149ecf2cbf788b5a0d01481e290f84e4660c06 (diff) |
[media] gspca: store current mode instead of individual parameters
Store complete current mode (struct v4l2_pix_format) in struct gspca_dev
instead of separate pixfmt, width and height parameters.
This is a preparation for variable resolution support.
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/gspca/m5602/m5602_mt9m111.c')
-rw-r--r-- | drivers/media/usb/gspca/m5602/m5602_mt9m111.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/m5602/m5602_mt9m111.c b/drivers/media/usb/gspca/m5602/m5602_mt9m111.c index cfa4663f8934..27fcef11aef4 100644 --- a/drivers/media/usb/gspca/m5602/m5602_mt9m111.c +++ b/drivers/media/usb/gspca/m5602/m5602_mt9m111.c | |||
@@ -266,7 +266,7 @@ static int mt9m111_set_hvflip(struct gspca_dev *gspca_dev) | |||
266 | return err; | 266 | return err; |
267 | 267 | ||
268 | data[0] = MT9M111_RMB_OVER_SIZED; | 268 | data[0] = MT9M111_RMB_OVER_SIZED; |
269 | if (gspca_dev->width == 640) { | 269 | if (gspca_dev->pixfmt.width == 640) { |
270 | data[1] = MT9M111_RMB_ROW_SKIP_2X | | 270 | data[1] = MT9M111_RMB_ROW_SKIP_2X | |
271 | MT9M111_RMB_COLUMN_SKIP_2X | | 271 | MT9M111_RMB_COLUMN_SKIP_2X | |
272 | (hflip << 1) | vflip; | 272 | (hflip << 1) | vflip; |