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

Commit 9e5e3097 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] az6007: CodingStyle fixes

parent 44744f9b
Loading
Loading
Loading
Loading
+13 −14
Original line number Original line Diff line number Diff line
@@ -213,8 +213,6 @@ static int az6007_rc_query(struct dvb_usb_device *d)
	else
	else
		code = code << 16 | st->data[3] << 8 | st->data[4];
		code = code << 16 | st->data[3] << 8 | st->data[4];


	printk("remote query key: %04x\n", code);

	rc_keydown(d->rc_dev, code, st->data[5]);
	rc_keydown(d->rc_dev, code, st->data[5]);


	return 0;
	return 0;
@@ -362,8 +360,8 @@ static int az6007_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
			value = addr | (1 << 8);
			value = addr | (1 << 8);
			length = 6 + msgs[i + 1].len;
			length = 6 + msgs[i + 1].len;
			len = msgs[i + 1].len;
			len = msgs[i + 1].len;
			ret = __az6007_read(d->udev, req, value, index, st->data,
			ret = __az6007_read(d->udev, req, value, index,
					       length);
					    st->data, length);
			if (ret >= len) {
			if (ret >= len) {
				for (j = 0; j < len; j++) {
				for (j = 0; j < len; j++) {
					msgs[i + 1].buf[j] = st->data[j + 5];
					msgs[i + 1].buf[j] = st->data[j + 5];
@@ -391,10 +389,11 @@ static int az6007_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
			for (j = 0; j < len; j++) {
			for (j = 0; j < len; j++) {
				st->data[j] = msgs[i].buf[j + 1];
				st->data[j] = msgs[i].buf[j + 1];
				if (dvb_usb_az6007_debug & 2)
				if (dvb_usb_az6007_debug & 2)
					printk(KERN_CONT "0x%02x ", st->data[j]);
					printk(KERN_CONT "0x%02x ",
					       st->data[j]);
			}
			}
			ret =  __az6007_write(d->udev, req, value, index, st->data,
			ret =  __az6007_write(d->udev, req, value, index,
						 length);
					      st->data, length);
		} else {
		} else {
			/* read bytes */
			/* read bytes */
			if (dvb_usb_az6007_debug & 2)
			if (dvb_usb_az6007_debug & 2)
@@ -406,8 +405,8 @@ static int az6007_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
			value = addr;
			value = addr;
			length = msgs[i].len + 6;
			length = msgs[i].len + 6;
			len = msgs[i].len;
			len = msgs[i].len;
			ret = __az6007_read(d->udev, req, value, index, st->data,
			ret = __az6007_read(d->udev, req, value, index,
					       length);
					    st->data, length);
			for (j = 0; j < len; j++) {
			for (j = 0; j < len; j++) {
				msgs[i].buf[j] = st->data[j + 5];
				msgs[i].buf[j] = st->data[j + 5];
				if (dvb_usb_az6007_debug & 2)
				if (dvb_usb_az6007_debug & 2)