Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4efa2d75
Commit
4efa2d75
authored
Aug 09, 2009
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (12408): em28xx: Implement g/s_register via address match
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
c53d83cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/media/video/em28xx/em28xx-video.c
drivers/media/video/em28xx/em28xx-video.c
+6
-4
No files found.
drivers/media/video/em28xx/em28xx-video.c
View file @
4efa2d75
...
...
@@ -1314,8 +1314,9 @@ static int vidioc_g_register(struct file *file, void *priv,
v4l2_device_call_all
(
&
dev
->
v4l2_dev
,
0
,
core
,
g_register
,
reg
);
return
0
;
case
V4L2_CHIP_MATCH_I2C_ADDR
:
/* Not supported yet */
return
-
EINVAL
;
/* TODO: is this correct? */
v4l2_device_call_all
(
&
dev
->
v4l2_dev
,
0
,
core
,
g_register
,
reg
);
return
0
;
default:
if
(
!
v4l2_chip_match_host
(
&
reg
->
match
))
return
-
EINVAL
;
...
...
@@ -1366,8 +1367,9 @@ static int vidioc_s_register(struct file *file, void *priv,
v4l2_device_call_all
(
&
dev
->
v4l2_dev
,
0
,
core
,
s_register
,
reg
);
return
0
;
case
V4L2_CHIP_MATCH_I2C_ADDR
:
/* Not supported yet */
return
-
EINVAL
;
/* TODO: is this correct? */
v4l2_device_call_all
(
&
dev
->
v4l2_dev
,
0
,
core
,
s_register
,
reg
);
return
0
;
default:
if
(
!
v4l2_chip_match_host
(
&
reg
->
match
))
return
-
EINVAL
;
...
...
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