summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAllon Huang <allon.huang@rock-chips.com>2019-06-10 14:54:50 +0800
committerTao Huang <huangtao@rock-chips.com>2019-06-19 19:28:22 +0800
commit82a27d2c88dc59615eee98a17db1ba98dfef0a67 (patch)
tree3992a97ed07ca302fb2061035901ac59c0634b8d /drivers
parent48eade26ad008125d7b9e44955d30b637b5f02f9 (diff)
media: i2c: gc2145: Fix code style issue
Change-Id: Iba67ab5db9589983e8f3bf544f8fb6d5ce6d2fb2 Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/i2c/gc2145.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/drivers/media/i2c/gc2145.c b/drivers/media/i2c/gc2145.c
index 64fe3196fd28..00e39e72c39d 100644
--- a/drivers/media/i2c/gc2145.c
+++ b/drivers/media/i2c/gc2145.c
@@ -1821,11 +1821,11 @@ static const struct sensor_register gc2145_mipi_svga_30fps[] = {
{0x25, 0x01},
{0x26, 0xac},
- {0x27, 0x05},//4e2 pad
+ {0x27, 0x05},/* 4e2 pad */
{0x28, 0x04},
- {0x29, 0x05},//6d6 pad
+ {0x29, 0x05},/* 6d6 pad */
{0x2a, 0x04},
- {0x2b, 0x05},//7d0 pad
+ {0x2b, 0x05},/* 7d0 pad */
{0x2c, 0x04},
{0x2d, 0x05},
{0x2e, 0x04},
@@ -2214,7 +2214,6 @@ static int gc2145_set_fmt(struct v4l2_subdev *sd,
gc2145->frame_size = size;
gc2145->format = fmt->format;
-
}
mutex_unlock(&gc2145->lock);
@@ -2228,9 +2227,9 @@ static int gc2145_s_stream(struct v4l2_subdev *sd, int on)
int ret = 0;
dev_info(&client->dev, "%s: on: %d, %dx%d@%d\n", __func__, on,
- gc2145->frame_size->width,
- gc2145->frame_size->height,
- gc2145->frame_size->fps);
+ gc2145->frame_size->width,
+ gc2145->frame_size->height,
+ gc2145->frame_size->fps);
mutex_lock(&gc2145->lock);
@@ -2349,7 +2348,7 @@ static int gc2145_s_frame_interval(struct v4l2_subdev *sd,
int ret = 0;
dev_dbg(&client->dev, "Setting %d/%d frame interval\n",
- fi->interval.numerator, fi->interval.denominator);
+ fi->interval.numerator, fi->interval.denominator);
mutex_lock(&gc2145->lock);
@@ -2363,7 +2362,7 @@ static int gc2145_s_frame_interval(struct v4l2_subdev *sd,
if (gc2145->frame_size != size) {
dev_info(&client->dev, "%s match wxh@FPS is %dx%d@%d\n",
- __func__, size->width, size->height, size->fps);
+ __func__, size->width, size->height, size->fps);
ret = gc2145_write_array(client, size->regs);
if (ret)
goto unlock;
@@ -2585,7 +2584,7 @@ static int __gc2145_power_on(struct gc2145 *gc2145)
if (!IS_ERR(gc2145->supplies)) {
ret = regulator_bulk_enable(GC2145_NUM_SUPPLIES,
- gc2145->supplies);
+ gc2145->supplies);
if (ret < 0)
dev_info(dev, "Failed to enable regulators\n");
@@ -2645,7 +2644,7 @@ static int gc2145_parse_of(struct gc2145 *gc2145)
}
ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(endpoint),
- &gc2145->bus_cfg);
+ &gc2145->bus_cfg);
if (ret) {
dev_err(dev, "Failed to parse endpoint\n");
of_node_put(endpoint);
@@ -2684,9 +2683,9 @@ static int gc2145_probe(struct i2c_client *client,
int ret;
dev_info(dev, "driver version: %02x.%02x.%02x",
- DRIVER_VERSION >> 16,
- (DRIVER_VERSION & 0xff00) >> 8,
- DRIVER_VERSION & 0x00ff);
+ DRIVER_VERSION >> 16,
+ (DRIVER_VERSION & 0xff00) >> 8,
+ DRIVER_VERSION & 0x00ff);
gc2145 = devm_kzalloc(&client->dev, sizeof(*gc2145), GFP_KERNEL);
if (!gc2145)