Commit 16aaf112 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: ov9640: Wrap long and unwrap short lines, align wrapped lines correctly

Some little style fixup work.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent ffe305d2
...@@ -271,7 +271,8 @@ static int ov9640_s_stream(struct v4l2_subdev *sd, int enable) ...@@ -271,7 +271,8 @@ static int ov9640_s_stream(struct v4l2_subdev *sd, int enable)
/* Set status of additional camera capabilities */ /* Set status of additional camera capabilities */
static int ov9640_s_ctrl(struct v4l2_ctrl *ctrl) static int ov9640_s_ctrl(struct v4l2_ctrl *ctrl)
{ {
struct ov9640_priv *priv = container_of(ctrl->handler, struct ov9640_priv, hdl); struct ov9640_priv *priv = container_of(ctrl->handler,
struct ov9640_priv, hdl);
struct i2c_client *client = v4l2_get_subdevdata(&priv->subdev); struct i2c_client *client = v4l2_get_subdevdata(&priv->subdev);
switch (ctrl->id) { switch (ctrl->id) {
...@@ -684,8 +685,7 @@ static int ov9640_probe(struct i2c_client *client, ...@@ -684,8 +685,7 @@ static int ov9640_probe(struct i2c_client *client,
struct ov9640_priv *priv; struct ov9640_priv *priv;
int ret; int ret;
priv = devm_kzalloc(&client->dev, sizeof(*priv), priv = devm_kzalloc(&client->dev, sizeof(*priv), GFP_KERNEL);
GFP_KERNEL);
if (!priv) if (!priv)
return -ENOMEM; return -ENOMEM;
...@@ -751,6 +751,7 @@ static int ov9640_remove(struct i2c_client *client) ...@@ -751,6 +751,7 @@ static int ov9640_remove(struct i2c_client *client)
v4l2_clk_put(priv->clk); v4l2_clk_put(priv->clk);
v4l2_async_unregister_subdev(&priv->subdev); v4l2_async_unregister_subdev(&priv->subdev);
v4l2_ctrl_handler_free(&priv->hdl); v4l2_ctrl_handler_free(&priv->hdl);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment