media: ov9640: Wrap long and unwrap short lines, align wrapped lines correctly
Some little style fixup work. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Родитель
ffe305d261
Коммит
16aaf112d3
|
@ -271,7 +271,8 @@ static int ov9640_s_stream(struct v4l2_subdev *sd, int enable)
|
|||
/* Set status of additional camera capabilities */
|
||||
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);
|
||||
|
||||
switch (ctrl->id) {
|
||||
|
@ -684,8 +685,7 @@ static int ov9640_probe(struct i2c_client *client,
|
|||
struct ov9640_priv *priv;
|
||||
int ret;
|
||||
|
||||
priv = devm_kzalloc(&client->dev, sizeof(*priv),
|
||||
GFP_KERNEL);
|
||||
priv = devm_kzalloc(&client->dev, sizeof(*priv), GFP_KERNEL);
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
|
||||
|
@ -751,6 +751,7 @@ static int ov9640_remove(struct i2c_client *client)
|
|||
v4l2_clk_put(priv->clk);
|
||||
v4l2_async_unregister_subdev(&priv->subdev);
|
||||
v4l2_ctrl_handler_free(&priv->hdl);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче