aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/gspca/sn9c20x.c
diff options
context:
space:
mode:
authorMorgan Phillips <winter2718@gmail.com>2014-09-08 08:49:47 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-21 19:59:57 -0400
commite0aa2b28d4b5cdf3d878331bce88d05b303304a0 (patch)
treed46ee99f4e29cb51be1c5483ad64aed76e3ce240 /drivers/media/usb/gspca/sn9c20x.c
parent312487ccfde9df5e39cd23d1c686b5cce8bab046 (diff)
[media] sn9c20x: fix checkpatch warning: sizeof cmatrix should be sizeof(cmatrix)
Signed-off-by: Morgan Phillips <winter2718@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/gspca/sn9c20x.c')
-rw-r--r--drivers/media/usb/gspca/sn9c20x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/sn9c20x.c b/drivers/media/usb/gspca/sn9c20x.c
index 95467f009d47..d0ee899584a9 100644
--- a/drivers/media/usb/gspca/sn9c20x.c
+++ b/drivers/media/usb/gspca/sn9c20x.c
@@ -1297,7 +1297,7 @@ static void set_cmatrix(struct gspca_dev *gspca_dev,
1297 s32 hue_coord, hue_index = 180 + hue; 1297 s32 hue_coord, hue_index = 180 + hue;
1298 u8 cmatrix[21]; 1298 u8 cmatrix[21];
1299 1299
1300 memset(cmatrix, 0, sizeof cmatrix); 1300 memset(cmatrix, 0, sizeof(cmatrix));
1301 cmatrix[2] = (contrast * 0x25 / 0x100) + 0x26; 1301 cmatrix[2] = (contrast * 0x25 / 0x100) + 0x26;
1302 cmatrix[0] = 0x13 + (cmatrix[2] - 0x26) * 0x13 / 0x25; 1302 cmatrix[0] = 0x13 + (cmatrix[2] - 0x26) * 0x13 / 0x25;
1303 cmatrix[4] = 0x07 + (cmatrix[2] - 0x26) * 0x07 / 0x25; 1303 cmatrix[4] = 0x07 + (cmatrix[2] - 0x26) * 0x07 / 0x25;