Commit cd6ff5c2 authored by Jinqiang Zeng's avatar Jinqiang Zeng Committed by Mauro Carvalho Chehab
Browse files

[media] fix the code style errors in sn9c102

parent bc8aacec
Loading
Loading
Loading
Loading
+173 −169
Original line number Diff line number Diff line
@@ -372,6 +372,7 @@ sn9c102_i2c_detect_write_error(struct sn9c102_device* cam,
			       const struct sn9c102_sensor *sensor)
{
	int r;

	r = sn9c102_read_reg(cam, 0x08);
	return (r < 0 || (r >= 0 && (r & 0x08))) ? -EIO : 0;
}
@@ -1350,7 +1351,8 @@ sn9c102_store_green(struct device* cd, struct device_attribute *attr,
	case BRIDGE_SN9C102:
		if (value > 0x0f)
			return -EINVAL;
		if ((res = sn9c102_store_reg(cd, attr, "0x11", 4)) >= 0)
		res = sn9c102_store_reg(cd, attr, "0x11", 4);
		if (res >= 0)
			res = sn9c102_store_val(cd, attr, buf, len);
		break;
	case BRIDGE_SN9C103:
@@ -1358,7 +1360,8 @@ sn9c102_store_green(struct device* cd, struct device_attribute *attr,
	case BRIDGE_SN9C120:
		if (value > 0x7f)
			return -EINVAL;
		if ((res = sn9c102_store_reg(cd, attr, "0x07", 4)) >= 0)
		res = sn9c102_store_reg(cd, attr, "0x07", 4);
		if (res >= 0)
			res = sn9c102_store_val(cd, attr, buf, len);
		break;
	}
@@ -1379,7 +1382,8 @@ sn9c102_store_blue(struct device* cd, struct device_attribute *attr,
	if (!count || value > 0x7f)
		return -EINVAL;

	if ((res = sn9c102_store_reg(cd, attr, "0x06", 4)) >= 0)
	res = sn9c102_store_reg(cd, attr, "0x06", 4);
	if (res >= 0)
		res = sn9c102_store_val(cd, attr, buf, len);

	return res;
@@ -1397,8 +1401,8 @@ sn9c102_store_red(struct device* cd, struct device_attribute *attr,
	value = sn9c102_strtou16(buf, len, &count);
	if (!count || value > 0x7f)
		return -EINVAL;

	if ((res = sn9c102_store_reg(cd, attr, "0x05", 4)) >= 0)
	res = sn9c102_store_reg(cd, attr, "0x05", 4);
	if (res >= 0)
		res = sn9c102_store_val(cd, attr, buf, len);

	return res;
+11 −11

File changed.

Contains only whitespace changes.

+11 −11

File changed.

Contains only whitespace changes.

+7 −7

File changed.

Contains only whitespace changes.

+9 −9

File changed.

Contains only whitespace changes.

+11 −11

File changed.

Contains only whitespace changes.

+15 −15

File changed.

Contains only whitespace changes.

+11 −11

File changed.

Contains only whitespace changes.

+11 −11

File changed.

Contains only whitespace changes.

+17 −17

File changed.

Contains only whitespace changes.

+9 −9

File changed.

Contains only whitespace changes.

+15 −15

File changed.

Contains only whitespace changes.

+11 −11

File changed.

Contains only whitespace changes.

+15 −15

File changed.

Contains only whitespace changes.

Loading