Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
fbe2800c
Commit
fbe2800c
authored
Jun 29, 2009
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (12137): mt9v011: CodingStyle fixes
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
afe09f82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
drivers/media/video/mt9v011.c
drivers/media/video/mt9v011.c
+7
-4
No files found.
drivers/media/video/mt9v011.c
View file @
fbe2800c
...
...
@@ -71,15 +71,17 @@ static int mt9v011_read(struct v4l2_subdev *sd, unsigned char addr)
__be16
buffer
;
int
rc
,
val
;
if
(
1
!=
(
rc
=
i2c_master_send
(
c
,
&
addr
,
1
)))
rc
=
i2c_master_send
(
c
,
&
addr
,
1
);
if
(
rc
!=
1
)
v4l2_dbg
(
0
,
debug
,
sd
,
"i2c i/o error: rc == %d (should be 1)
\n
"
,
rc
);
msleep
(
10
);
if
(
2
!=
(
rc
=
i2c_master_recv
(
c
,
(
char
*
)
&
buffer
,
2
)))
rc
=
i2c_master_recv
(
c
,
(
char
*
)
&
buffer
,
2
);
if
(
rc
!=
2
)
v4l2_dbg
(
0
,
debug
,
sd
,
"i2c i/o error: rc == %d (should be
1
)
\n
"
,
rc
);
"i2c i/o error: rc == %d (should be
2
)
\n
"
,
rc
);
val
=
be16_to_cpu
(
buffer
);
...
...
@@ -101,7 +103,8 @@ static void mt9v011_write(struct v4l2_subdev *sd, unsigned char addr,
v4l2_dbg
(
2
,
debug
,
sd
,
"mt9v011: writing 0x%02x 0x%04x
\n
"
,
buffer
[
0
],
value
);
if
(
3
!=
(
rc
=
i2c_master_send
(
c
,
buffer
,
3
)))
rc
=
i2c_master_send
(
c
,
&
buffer
,
3
);
if
(
rc
!=
3
)
v4l2_dbg
(
0
,
debug
,
sd
,
"i2c i/o error: rc == %d (should be 3)
\n
"
,
rc
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment