Commit 4568b42f authored by Martin Kepplinger's avatar Martin Kepplinger Committed by Dorota Czaplejewicz
Browse files

hi846: coding style fixes

parent d165ce8d
......@@ -1298,9 +1298,9 @@ static int hi846_get_format(struct v4l2_subdev *sd,
mf->width = hi846->cur_mode->width;
mf->height = hi846->cur_mode->height;
mutex_unlock(&hi846->mutex);
dev_dbg(&client->dev, "Get format w=%d h=%d code=0x%x colorspace=0x%x\n",
mf->width, mf->height,
mf->code, mf->colorspace);
dev_dbg(&client->dev,
"Get format w=%d h=%d code=0x%x colorspace=0x%x\n",
mf->width, mf->height, mf->code, mf->colorspace);
return 0;
}
......@@ -1544,7 +1544,7 @@ static int debug_add(void *data, u64 value)
return -EINVAL;
if (value != entry.val)
return -EINVAL;
return -EINVAL;
memcpy((void *)&hi846->debug_regs->regs[hi846->debug_regs->num_of_regs],
&entry,
......@@ -1671,9 +1671,9 @@ static int hi846_probe(struct i2c_client *client)
if (IS_ERR(d))
dev_err(&client->dev, "debugfs create dir error\n");
debugfs_create_x16("address", S_IRUSR | S_IWUSR, d, &hi846->debug_address);
debugfs_create_file("add_value", S_IWUSR, d, (void *)hi846, &debug_add_ops);
debugfs_create_file("clear", S_IWUSR, d, (void *)hi846, &debug_clear_ops);
debugfs_create_x16("address", 0600, d, &hi846->debug_address);
debugfs_create_file("add_value", 0200, d, (void *)hi846, &debug_add_ops);
debugfs_create_file("clear", 0200, d, (void *)hi846, &debug_clear_ops);
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