Loading drivers/media/video/tuner-core.c +47 −45 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ #define UNSET (-1U) #define PREFIX t->i2c->driver->driver.name #define PREFIX (t->i2c->driver->driver.name) /* * Driver modprobe parameters Loading Loading @@ -449,7 +449,8 @@ static int tuner_s_type_addr(struct v4l2_subdev *sd, struct tuner_setup *type) return 0; } static int tuner_s_config(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *cfg) static int tuner_s_config(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *cfg) { struct tuner *t = to_tuner(sd); struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; Loading Loading @@ -601,13 +602,12 @@ static int tuner_probe(struct i2c_client *client, /* Should be just before return */ register_client: /* Sets a default mode */ if (t->mode_mask & T_ANALOG_TV) { if (t->mode_mask & T_ANALOG_TV) t->mode = V4L2_TUNER_ANALOG_TV; } else if (t->mode_mask & T_RADIO) { else if (t->mode_mask & T_RADIO) t->mode = V4L2_TUNER_RADIO; } else { else t->mode = V4L2_TUNER_DIGITAL_TV; } set_type(client, t->type, t->mode_mask, t->config, t->fe.callback); list_add_tail(&t->list, &tuner_list); Loading Loading @@ -736,7 +736,9 @@ static int tuner_fixup_std(struct tuner *t) case 'h': case 'H': tuner_dbg("insmod fixup: SECAM => SECAM-BGH\n"); t->std = V4L2_STD_SECAM_B | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H; t->std = V4L2_STD_SECAM_B | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H; break; case 'd': case 'D': Loading Loading @@ -848,9 +850,9 @@ static void set_radio_freq(struct i2c_client *c, unsigned int freq) */ static inline int check_mode(struct tuner *t, enum v4l2_tuner_type mode) { if ((1 << mode & t->mode_mask) == 0) { if ((1 << mode & t->mode_mask) == 0) return -EINVAL; } return 0; } Loading Loading
drivers/media/video/tuner-core.c +47 −45 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ #define UNSET (-1U) #define PREFIX t->i2c->driver->driver.name #define PREFIX (t->i2c->driver->driver.name) /* * Driver modprobe parameters Loading Loading @@ -449,7 +449,8 @@ static int tuner_s_type_addr(struct v4l2_subdev *sd, struct tuner_setup *type) return 0; } static int tuner_s_config(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *cfg) static int tuner_s_config(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *cfg) { struct tuner *t = to_tuner(sd); struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; Loading Loading @@ -601,13 +602,12 @@ static int tuner_probe(struct i2c_client *client, /* Should be just before return */ register_client: /* Sets a default mode */ if (t->mode_mask & T_ANALOG_TV) { if (t->mode_mask & T_ANALOG_TV) t->mode = V4L2_TUNER_ANALOG_TV; } else if (t->mode_mask & T_RADIO) { else if (t->mode_mask & T_RADIO) t->mode = V4L2_TUNER_RADIO; } else { else t->mode = V4L2_TUNER_DIGITAL_TV; } set_type(client, t->type, t->mode_mask, t->config, t->fe.callback); list_add_tail(&t->list, &tuner_list); Loading Loading @@ -736,7 +736,9 @@ static int tuner_fixup_std(struct tuner *t) case 'h': case 'H': tuner_dbg("insmod fixup: SECAM => SECAM-BGH\n"); t->std = V4L2_STD_SECAM_B | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H; t->std = V4L2_STD_SECAM_B | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H; break; case 'd': case 'D': Loading Loading @@ -848,9 +850,9 @@ static void set_radio_freq(struct i2c_client *c, unsigned int freq) */ static inline int check_mode(struct tuner *t, enum v4l2_tuner_type mode) { if ((1 << mode & t->mode_mask) == 0) { if ((1 << mode & t->mode_mask) == 0) return -EINVAL; } return 0; } Loading