Commit 28a769f1 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] adv7842: replace uintX_t by uX for consistency

Currently this driver mixes u8/u32 and uint8_t/uint32_t. Standardize on
u8/u32.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 5be50ef1
...@@ -1556,7 +1556,7 @@ static int adv7842_query_dv_timings(struct v4l2_subdev *sd, ...@@ -1556,7 +1556,7 @@ static int adv7842_query_dv_timings(struct v4l2_subdev *sd,
V4L2_DV_BT_STD_GTF | V4L2_DV_BT_STD_CVT; V4L2_DV_BT_STD_GTF | V4L2_DV_BT_STD_CVT;
if (is_digital_input(sd)) { if (is_digital_input(sd)) {
uint32_t freq; u32 freq;
timings->type = V4L2_DV_BT_656_1120; timings->type = V4L2_DV_BT_656_1120;
...@@ -2334,7 +2334,7 @@ struct adv7842_cfg_read_infoframe { ...@@ -2334,7 +2334,7 @@ struct adv7842_cfg_read_infoframe {
static void log_infoframe(struct v4l2_subdev *sd, struct adv7842_cfg_read_infoframe *cri) static void log_infoframe(struct v4l2_subdev *sd, struct adv7842_cfg_read_infoframe *cri)
{ {
int i; int i;
uint8_t buffer[32]; u8 buffer[32];
union hdmi_infoframe frame; union hdmi_infoframe frame;
u8 len; u8 len;
struct i2c_client *client = v4l2_get_subdevdata(sd); struct i2c_client *client = v4l2_get_subdevdata(sd);
...@@ -2407,7 +2407,7 @@ static const char * const prim_mode_txt[] = { ...@@ -2407,7 +2407,7 @@ static const char * const prim_mode_txt[] = {
static int adv7842_sdp_log_status(struct v4l2_subdev *sd) static int adv7842_sdp_log_status(struct v4l2_subdev *sd)
{ {
/* SDP (Standard definition processor) block */ /* SDP (Standard definition processor) block */
uint8_t sdp_signal_detected = sdp_read(sd, 0x5A) & 0x01; u8 sdp_signal_detected = sdp_read(sd, 0x5A) & 0x01;
v4l2_info(sd, "Chip powered %s\n", no_power(sd) ? "off" : "on"); v4l2_info(sd, "Chip powered %s\n", no_power(sd) ? "off" : "on");
v4l2_info(sd, "Prim-mode = 0x%x, video std = 0x%x\n", v4l2_info(sd, "Prim-mode = 0x%x, video std = 0x%x\n",
...@@ -2451,10 +2451,10 @@ static int adv7842_cp_log_status(struct v4l2_subdev *sd) ...@@ -2451,10 +2451,10 @@ static int adv7842_cp_log_status(struct v4l2_subdev *sd)
/* CP block */ /* CP block */
struct adv7842_state *state = to_state(sd); struct adv7842_state *state = to_state(sd);
struct v4l2_dv_timings timings; struct v4l2_dv_timings timings;
uint8_t reg_io_0x02 = io_read(sd, 0x02); u8 reg_io_0x02 = io_read(sd, 0x02);
uint8_t reg_io_0x21 = io_read(sd, 0x21); u8 reg_io_0x21 = io_read(sd, 0x21);
uint8_t reg_rep_0x77 = rep_read(sd, 0x77); u8 reg_rep_0x77 = rep_read(sd, 0x77);
uint8_t reg_rep_0x7d = rep_read(sd, 0x7d); u8 reg_rep_0x7d = rep_read(sd, 0x7d);
bool audio_pll_locked = hdmi_read(sd, 0x04) & 0x01; bool audio_pll_locked = hdmi_read(sd, 0x04) & 0x01;
bool audio_sample_packet_detect = hdmi_read(sd, 0x18) & 0x01; bool audio_sample_packet_detect = hdmi_read(sd, 0x18) & 0x01;
bool audio_mute = io_read(sd, 0x65) & 0x40; bool audio_mute = io_read(sd, 0x65) & 0x40;
...@@ -2526,10 +2526,10 @@ static int adv7842_cp_log_status(struct v4l2_subdev *sd) ...@@ -2526,10 +2526,10 @@ static int adv7842_cp_log_status(struct v4l2_subdev *sd)
if (no_cp_signal(sd)) { if (no_cp_signal(sd)) {
v4l2_info(sd, "STDI: not locked\n"); v4l2_info(sd, "STDI: not locked\n");
} else { } else {
uint32_t bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2); u32 bl = ((cp_read(sd, 0xb1) & 0x3f) << 8) | cp_read(sd, 0xb2);
uint32_t lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4); u32 lcf = ((cp_read(sd, 0xb3) & 0x7) << 8) | cp_read(sd, 0xb4);
uint32_t lcvs = cp_read(sd, 0xb3) >> 3; u32 lcvs = cp_read(sd, 0xb3) >> 3;
uint32_t fcl = ((cp_read(sd, 0xb8) & 0x1f) << 8) | cp_read(sd, 0xb9); u32 fcl = ((cp_read(sd, 0xb8) & 0x1f) << 8) | cp_read(sd, 0xb9);
char hs_pol = ((cp_read(sd, 0xb5) & 0x10) ? char hs_pol = ((cp_read(sd, 0xb5) & 0x10) ?
((cp_read(sd, 0xb5) & 0x08) ? '+' : '-') : 'x'); ((cp_read(sd, 0xb5) & 0x08) ? '+' : '-') : 'x');
char vs_pol = ((cp_read(sd, 0xb5) & 0x40) ? char vs_pol = ((cp_read(sd, 0xb5) & 0x40) ?
......
...@@ -103,35 +103,35 @@ enum adv7842_drive_strength { ...@@ -103,35 +103,35 @@ enum adv7842_drive_strength {
struct adv7842_sdp_csc_coeff { struct adv7842_sdp_csc_coeff {
bool manual; bool manual;
uint16_t scaling; u16 scaling;
uint16_t A1; u16 A1;
uint16_t A2; u16 A2;
uint16_t A3; u16 A3;
uint16_t A4; u16 A4;
uint16_t B1; u16 B1;
uint16_t B2; u16 B2;
uint16_t B3; u16 B3;
uint16_t B4; u16 B4;
uint16_t C1; u16 C1;
uint16_t C2; u16 C2;
uint16_t C3; u16 C3;
uint16_t C4; u16 C4;
}; };
struct adv7842_sdp_io_sync_adjustment { struct adv7842_sdp_io_sync_adjustment {
bool adjust; bool adjust;
uint16_t hs_beg; u16 hs_beg;
uint16_t hs_width; u16 hs_width;
uint16_t de_beg; u16 de_beg;
uint16_t de_end; u16 de_end;
uint8_t vs_beg_o; u8 vs_beg_o;
uint8_t vs_beg_e; u8 vs_beg_e;
uint8_t vs_end_o; u8 vs_end_o;
uint8_t vs_end_e; u8 vs_end_e;
uint8_t de_v_beg_o; u8 de_v_beg_o;
uint8_t de_v_beg_e; u8 de_v_beg_e;
uint8_t de_v_end_o; u8 de_v_end_o;
uint8_t de_v_end_e; u8 de_v_end_e;
}; };
/* Platform dependent definition */ /* Platform dependent definition */
......
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