Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186856
b: refs/heads/master
c: d4023a5
h: refs/heads/master
v: v3
  • Loading branch information
Chihau Chau authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent d6294e4 commit 43dd8d3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71508ee489e09dc206ea3f62542dd3bd11c0e201
refs/heads/master: d4023a5ee2f683f57636346c0baf94cda710055a
37 changes: 18 additions & 19 deletions trunk/drivers/staging/dream/camera/msm_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ static int msm_get_stats(struct msm_sync *sync, void __user *arg)
&(stats.fd));
if (!stats.buffer) {
pr_err("%s: msm_pmem_stats_ptov_lookup error\n",
__FUNCTION__);
__func__);
rc = -EINVAL;
goto failure;
}
Expand Down Expand Up @@ -718,8 +718,7 @@ static int msm_get_stats(struct msm_sync *sync, void __user *arg)
buf.fmain.buffer =
(unsigned long)region.vaddr;
buf.fmain.fd = region.fd;
}
else {
} else {
pr_err("%s: pmem lookup failed\n",
__func__);
rc = -EINVAL;
Expand Down Expand Up @@ -838,8 +837,8 @@ static int msm_ctrl_cmd_done(struct msm_control_device *ctrl_pmsm,
kfree(qcmd);
goto end;
}
}
else ctrlcmd->value = NULL;
} else
ctrlcmd->value = NULL;

end:
CDBG("msm_ctrl_cmd_done: end rc = %d\n", rc);
Expand Down Expand Up @@ -876,7 +875,7 @@ static int msm_config_vfe(struct msm_sync *sync, void __user *arg)
MSM_PMEM_AEC_AWB, &region[0],
NUM_WB_EXP_STAT_OUTPUT_BUFFERS);
if (!axi_data.bufnum1) {
pr_err("%s: pmem region lookup error\n", __FUNCTION__);
pr_err("%s: pmem region lookup error\n", __func__);
return -EINVAL;
}
axi_data.region = &region[0];
Expand All @@ -888,7 +887,7 @@ static int msm_config_vfe(struct msm_sync *sync, void __user *arg)
MSM_PMEM_AF, &region[0],
NUM_AF_STAT_OUTPUT_BUFFERS);
if (!axi_data.bufnum1) {
pr_err("%s: pmem region lookup error\n", __FUNCTION__);
pr_err("%s: pmem region lookup error\n", __func__);
return -EINVAL;
}
axi_data.region = &region[0];
Expand All @@ -899,7 +898,7 @@ static int msm_config_vfe(struct msm_sync *sync, void __user *arg)
break;
default:
pr_err("%s: unknown command type %d\n",
__FUNCTION__, cfgcmd.cmd_type);
__func__, cfgcmd.cmd_type);
return -EINVAL;
}

Expand Down Expand Up @@ -928,7 +927,7 @@ static int msm_frame_axi_cfg(struct msm_sync *sync,
msm_pmem_region_lookup(&sync->frame, pmem_type,
&region[0], 8);
if (!axi_data.bufnum1) {
pr_err("%s: pmem region lookup error\n", __FUNCTION__);
pr_err("%s: pmem region lookup error\n", __func__);
return -EINVAL;
}
break;
Expand All @@ -939,7 +938,7 @@ static int msm_frame_axi_cfg(struct msm_sync *sync,
msm_pmem_region_lookup(&sync->frame, pmem_type,
&region[0], 8);
if (!axi_data.bufnum2) {
pr_err("%s: pmem region lookup error\n", __FUNCTION__);
pr_err("%s: pmem region lookup error\n", __func__);
return -EINVAL;
}
break;
Expand All @@ -950,7 +949,7 @@ static int msm_frame_axi_cfg(struct msm_sync *sync,
msm_pmem_region_lookup(&sync->frame, pmem_type,
&region[0], 8);
if (!axi_data.bufnum1) {
pr_err("%s: pmem region lookup error\n", __FUNCTION__);
pr_err("%s: pmem region lookup error\n", __func__);
return -EINVAL;
}

Expand All @@ -959,7 +958,7 @@ static int msm_frame_axi_cfg(struct msm_sync *sync,
msm_pmem_region_lookup(&sync->frame, pmem_type,
&region[axi_data.bufnum1], 8);
if (!axi_data.bufnum2) {
pr_err("%s: pmem region lookup error\n", __FUNCTION__);
pr_err("%s: pmem region lookup error\n", __func__);
return -EINVAL;
}
break;
Expand All @@ -970,7 +969,7 @@ static int msm_frame_axi_cfg(struct msm_sync *sync,
msm_pmem_region_lookup(&sync->frame, pmem_type,
&region[0], 8);
if (!axi_data.bufnum2) {
pr_err("%s: pmem region lookup error\n", __FUNCTION__);
pr_err("%s: pmem region lookup error\n", __func__);
return -EINVAL;
}
break;
Expand All @@ -981,7 +980,7 @@ static int msm_frame_axi_cfg(struct msm_sync *sync,

default:
pr_err("%s: unknown command type %d\n",
__FUNCTION__, cfgcmd->cmd_type);
__func__, cfgcmd->cmd_type);
return -EINVAL;
}

Expand Down Expand Up @@ -1047,7 +1046,7 @@ static int __msm_put_frame_buf(struct msm_sync *sync,
rc = sync->vfefn.vfe_config(&cfgcmd, &pphy);
} else {
pr_err("%s: msm_pmem_frame_vtop_lookup failed\n",
__FUNCTION__);
__func__);
rc = -EINVAL;
}

Expand Down Expand Up @@ -1131,7 +1130,7 @@ static int msm_stats_axi_cfg(struct msm_sync *sync,
break;
default:
pr_err("%s: unknown command type %d\n",
__FUNCTION__, cfgcmd->cmd_type);
__func__, cfgcmd->cmd_type);
return -EINVAL;
}

Expand All @@ -1140,7 +1139,7 @@ static int msm_stats_axi_cfg(struct msm_sync *sync,
msm_pmem_region_lookup(&sync->stats, pmem_type,
&region[0], NUM_WB_EXP_STAT_OUTPUT_BUFFERS);
if (!axi_data.bufnum1) {
pr_err("%s: pmem region lookup error\n", __FUNCTION__);
pr_err("%s: pmem region lookup error\n", __func__);
return -EINVAL;
}
axi_data.region = &region[0];
Expand Down Expand Up @@ -1177,7 +1176,7 @@ static int msm_put_stats_buffer(struct msm_sync *sync, void __user *arg)
cfgcmd.cmd_type = CMD_STATS_AF_BUF_RELEASE;
else {
pr_err("%s: invalid buf type %d\n",
__FUNCTION__,
__func__,
buf.type);
rc = -EINVAL;
goto put_done;
Expand Down Expand Up @@ -1223,7 +1222,7 @@ static int msm_axi_config(struct msm_sync *sync, void __user *arg)

default:
pr_err("%s: unknown command type %d\n",
__FUNCTION__,
__func__,
cfgcmd.cmd_type);
return -EINVAL;
}
Expand Down

0 comments on commit 43dd8d3

Please sign in to comment.