Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df84f941 authored by Chihau Chau's avatar Chihau Chau Committed by Greg Kroah-Hartman
Browse files

Staging: dream: camera: msm_camera: fix code style issues



This fixes some code style issues like to add one space after a while or
switch statement and before a open parenthesis '(', and to include KERN_
facility level in the printk() functions.

Signed-off-by: default avatarChihau Chau <chihau@gmail.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3f4b4e77
Loading
Loading
Loading
Loading
+10 −7
Original line number Original line Diff line number Diff line
@@ -1621,7 +1621,8 @@ static int msm_release_control(struct inode *node, struct file *filep)
	int rc;
	int rc;
	struct msm_control_device *ctrl_pmsm = filep->private_data;
	struct msm_control_device *ctrl_pmsm = filep->private_data;
	struct msm_device *pmsm = ctrl_pmsm->pmsm;
	struct msm_device *pmsm = ctrl_pmsm->pmsm;
	printk("msm_camera: RELEASE %s\n", filep->f_path.dentry->d_name.name);
	printk(KERN_INFO "msm_camera: RELEASE %s\n",
					filep->f_path.dentry->d_name.name);
	rc = __msm_release(pmsm->sync);
	rc = __msm_release(pmsm->sync);
	if (!rc) {
	if (!rc) {
		MSM_DRAIN_QUEUE(&ctrl_pmsm->ctrl_q, ctrl_status_q);
		MSM_DRAIN_QUEUE(&ctrl_pmsm->ctrl_q, ctrl_status_q);
@@ -1635,7 +1636,8 @@ static int msm_release_frame(struct inode *node, struct file *filep)
{
{
	int rc;
	int rc;
	struct msm_device *pmsm = filep->private_data;
	struct msm_device *pmsm = filep->private_data;
	printk("msm_camera: RELEASE %s\n", filep->f_path.dentry->d_name.name);
	printk(KERN_INFO "msm_camera: RELEASE %s\n",
					filep->f_path.dentry->d_name.name);
	rc = __msm_release(pmsm->sync);
	rc = __msm_release(pmsm->sync);
	if (!rc) {
	if (!rc) {
		MSM_DRAIN_QUEUE(pmsm->sync, prev_frame_q);
		MSM_DRAIN_QUEUE(pmsm->sync, prev_frame_q);
@@ -1928,7 +1930,8 @@ static int __msm_v4l2_control(struct msm_sync *sync,
	memcpy(out->value, ctrl->value, ctrl->length);
	memcpy(out->value, ctrl->value, ctrl->length);


end:
end:
	if (rcmd) kfree(rcmd);
	if (rcmd)
		kfree(rcmd);
	CDBG("__msm_v4l2_control: end rc = %d\n", rc);
	CDBG("__msm_v4l2_control: end rc = %d\n", rc);
	return rc;
	return rc;
}
}