Commit 7f9e9e8d authored by Antonio Ospite's avatar Antonio Ospite Committed by Mauro Carvalho Chehab

V4L/DVB: gspca - ov534: Cosmetics: fix indentation and hex digits

* Indent with tabs, not with spaces, nor with mixed style.
  * Less indentation for controls index comments.
  * Use lowercase hex digits.
Signed-off-by: default avatarAntonio Ospite <ospite@studenti.unina.it>
Signed-off-by: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent eb171073
...@@ -92,147 +92,147 @@ static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val); ...@@ -92,147 +92,147 @@ static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val);
static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val); static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val);
static const struct ctrl sd_ctrls[] = { static const struct ctrl sd_ctrls[] = {
{ /* 0 */ { /* 0 */
{ {
.id = V4L2_CID_BRIGHTNESS, .id = V4L2_CID_BRIGHTNESS,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Brightness", .name = "Brightness",
.minimum = 0, .minimum = 0,
.maximum = 255, .maximum = 255,
.step = 1, .step = 1,
#define BRIGHTNESS_DEF 0 #define BRIGHTNESS_DEF 0
.default_value = BRIGHTNESS_DEF, .default_value = BRIGHTNESS_DEF,
},
.set = sd_setbrightness,
.get = sd_getbrightness,
}, },
.set = sd_setbrightness, { /* 1 */
.get = sd_getbrightness, {
}, .id = V4L2_CID_CONTRAST,
{ /* 1 */ .type = V4L2_CTRL_TYPE_INTEGER,
{ .name = "Contrast",
.id = V4L2_CID_CONTRAST, .minimum = 0,
.type = V4L2_CTRL_TYPE_INTEGER, .maximum = 255,
.name = "Contrast", .step = 1,
.minimum = 0,
.maximum = 255,
.step = 1,
#define CONTRAST_DEF 32 #define CONTRAST_DEF 32
.default_value = CONTRAST_DEF, .default_value = CONTRAST_DEF,
},
.set = sd_setcontrast,
.get = sd_getcontrast,
}, },
.set = sd_setcontrast, { /* 2 */
.get = sd_getcontrast, {
}, .id = V4L2_CID_GAIN,
{ /* 2 */ .type = V4L2_CTRL_TYPE_INTEGER,
{ .name = "Main Gain",
.id = V4L2_CID_GAIN, .minimum = 0,
.type = V4L2_CTRL_TYPE_INTEGER, .maximum = 63,
.name = "Main Gain", .step = 1,
.minimum = 0,
.maximum = 63,
.step = 1,
#define GAIN_DEF 20 #define GAIN_DEF 20
.default_value = GAIN_DEF, .default_value = GAIN_DEF,
},
.set = sd_setgain,
.get = sd_getgain,
}, },
.set = sd_setgain, { /* 3 */
.get = sd_getgain, {
}, .id = V4L2_CID_EXPOSURE,
{ /* 3 */ .type = V4L2_CTRL_TYPE_INTEGER,
{ .name = "Exposure",
.id = V4L2_CID_EXPOSURE, .minimum = 0,
.type = V4L2_CTRL_TYPE_INTEGER, .maximum = 255,
.name = "Exposure", .step = 1,
.minimum = 0,
.maximum = 255,
.step = 1,
#define EXPO_DEF 120 #define EXPO_DEF 120
.default_value = EXPO_DEF, .default_value = EXPO_DEF,
},
.set = sd_setexposure,
.get = sd_getexposure,
}, },
.set = sd_setexposure, { /* 4 */
.get = sd_getexposure, {
}, .id = V4L2_CID_AUTOGAIN,
{ /* 4 */ .type = V4L2_CTRL_TYPE_BOOLEAN,
{ .name = "Auto Gain",
.id = V4L2_CID_AUTOGAIN, .minimum = 0,
.type = V4L2_CTRL_TYPE_BOOLEAN, .maximum = 1,
.name = "Auto Gain", .step = 1,
.minimum = 0,
.maximum = 1,
.step = 1,
#define AGC_DEF 1 #define AGC_DEF 1
.default_value = AGC_DEF, .default_value = AGC_DEF,
},
.set = sd_setagc,
.get = sd_getagc,
}, },
.set = sd_setagc,
.get = sd_getagc,
},
#define AWB_IDX 5 #define AWB_IDX 5
{ /* 5 */ { /* 5 */
{ {
.id = V4L2_CID_AUTO_WHITE_BALANCE, .id = V4L2_CID_AUTO_WHITE_BALANCE,
.type = V4L2_CTRL_TYPE_BOOLEAN, .type = V4L2_CTRL_TYPE_BOOLEAN,
.name = "Auto White Balance", .name = "Auto White Balance",
.minimum = 0, .minimum = 0,
.maximum = 1, .maximum = 1,
.step = 1, .step = 1,
#define AWB_DEF 1 #define AWB_DEF 1
.default_value = AWB_DEF, .default_value = AWB_DEF,
},
.set = sd_setawb,
.get = sd_getawb,
}, },
.set = sd_setawb, { /* 6 */
.get = sd_getawb, {
}, .id = V4L2_CID_EXPOSURE_AUTO,
{ /* 6 */ .type = V4L2_CTRL_TYPE_BOOLEAN,
{ .name = "Auto Exposure",
.id = V4L2_CID_EXPOSURE_AUTO, .minimum = 0,
.type = V4L2_CTRL_TYPE_BOOLEAN, .maximum = 1,
.name = "Auto Exposure", .step = 1,
.minimum = 0,
.maximum = 1,
.step = 1,
#define AEC_DEF 1 #define AEC_DEF 1
.default_value = AEC_DEF, .default_value = AEC_DEF,
},
.set = sd_setaec,
.get = sd_getaec,
}, },
.set = sd_setaec, { /* 7 */
.get = sd_getaec, {
}, .id = V4L2_CID_SHARPNESS,
{ /* 7 */ .type = V4L2_CTRL_TYPE_INTEGER,
{ .name = "Sharpness",
.id = V4L2_CID_SHARPNESS, .minimum = 0,
.type = V4L2_CTRL_TYPE_INTEGER, .maximum = 63,
.name = "Sharpness", .step = 1,
.minimum = 0,
.maximum = 63,
.step = 1,
#define SHARPNESS_DEF 0 #define SHARPNESS_DEF 0
.default_value = SHARPNESS_DEF, .default_value = SHARPNESS_DEF,
},
.set = sd_setsharpness,
.get = sd_getsharpness,
}, },
.set = sd_setsharpness, { /* 8 */
.get = sd_getsharpness, {
}, .id = V4L2_CID_HFLIP,
{ /* 8 */ .type = V4L2_CTRL_TYPE_BOOLEAN,
{ .name = "HFlip",
.id = V4L2_CID_HFLIP, .minimum = 0,
.type = V4L2_CTRL_TYPE_BOOLEAN, .maximum = 1,
.name = "HFlip", .step = 1,
.minimum = 0,
.maximum = 1,
.step = 1,
#define HFLIP_DEF 0 #define HFLIP_DEF 0
.default_value = HFLIP_DEF, .default_value = HFLIP_DEF,
},
.set = sd_sethflip,
.get = sd_gethflip,
}, },
.set = sd_sethflip, { /* 9 */
.get = sd_gethflip, {
}, .id = V4L2_CID_VFLIP,
{ /* 9 */ .type = V4L2_CTRL_TYPE_BOOLEAN,
{ .name = "VFlip",
.id = V4L2_CID_VFLIP, .minimum = 0,
.type = V4L2_CTRL_TYPE_BOOLEAN, .maximum = 1,
.name = "VFlip", .step = 1,
.minimum = 0,
.maximum = 1,
.step = 1,
#define VFLIP_DEF 0 #define VFLIP_DEF 0
.default_value = VFLIP_DEF, .default_value = VFLIP_DEF,
},
.set = sd_setvflip,
.get = sd_getvflip,
}, },
.set = sd_setvflip,
.get = sd_getvflip,
},
}; };
static const struct v4l2_pix_format ov772x_mode[] = { static const struct v4l2_pix_format ov772x_mode[] = {
...@@ -641,14 +641,14 @@ static void setbrightness(struct gspca_dev *gspca_dev) ...@@ -641,14 +641,14 @@ static void setbrightness(struct gspca_dev *gspca_dev)
{ {
struct sd *sd = (struct sd *) gspca_dev; struct sd *sd = (struct sd *) gspca_dev;
sccb_reg_write(gspca_dev, 0x9B, sd->brightness); sccb_reg_write(gspca_dev, 0x9b, sd->brightness);
} }
static void setcontrast(struct gspca_dev *gspca_dev) static void setcontrast(struct gspca_dev *gspca_dev)
{ {
struct sd *sd = (struct sd *) gspca_dev; struct sd *sd = (struct sd *) gspca_dev;
sccb_reg_write(gspca_dev, 0x9C, sd->contrast); sccb_reg_write(gspca_dev, 0x9c, sd->contrast);
} }
static void setgain(struct gspca_dev *gspca_dev) static void setgain(struct gspca_dev *gspca_dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment