Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d275bf8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] tuner-core: CodingStyle cleanups

parent e2f63d9b
Loading
Loading
Loading
Loading
+47 −45
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@

#define UNSET (-1U)

#define PREFIX t->i2c->driver->driver.name
#define PREFIX (t->i2c->driver->driver.name)

/*
 * Driver modprobe parameters
@@ -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;
@@ -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);

@@ -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':
@@ -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;
}