提交 bac79f37 编写于 作者: E Erik Andrén 提交者: Mauro Carvalho Chehab

V4L/DVB (10006): gspca - m5602: Align some defines

Signed-off-by: NErik Andrén <erik.andren@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 32500701
......@@ -69,7 +69,7 @@ int s5k83a_probe(struct sd *sd)
}
int s5k83a_read_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len)
u8 *i2c_data, const u8 len)
{
int err, i;
......@@ -106,11 +106,11 @@ int s5k83a_read_sensor(struct sd *sd, const u8 address,
}
out:
return (err < 0) ? err : 0;
return err;
}
int s5k83a_write_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len)
u8 *i2c_data, const u8 len)
{
int err, i;
u8 *p;
......
......@@ -22,15 +22,15 @@
#include "m5602_sensor.h"
#define S5K83A_FLIP 0x01
#define S5K83A_HFLIP_TUNE 0x03
#define S5K83A_VFLIP_TUNE 0x05
#define S5K83A_WHITENESS 0x0a
#define S5K83A_HFLIP_TUNE 0x03
#define S5K83A_VFLIP_TUNE 0x05
#define S5K83A_WHITENESS 0x0a
#define S5K83A_GAIN 0x18
#define S5K83A_BRIGHTNESS 0x1b
#define S5K83A_PAGE_MAP 0xec
#define S5K83A_BRIGHTNESS 0x1b
#define S5K83A_PAGE_MAP 0xec
#define S5K83A_DEFAULT_BRIGHTNESS 0x71
#define S5K83A_DEFAULT_WHITENESS 0x7e
#define S5K83A_DEFAULT_BRIGHTNESS 0x71
#define S5K83A_DEFAULT_WHITENESS 0x7e
#define S5K83A_DEFAULT_GAIN 0x00
#define S5K83A_MAXIMUM_GAIN 0x3c
#define S5K83A_FLIP_MASK 0x10
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册