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
a85dd084
Commit
a85dd084
authored
Jun 18, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: drivers/video/kyro annotation
parent
d8c75b27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/video/kyro/fbdev.c
drivers/video/kyro/fbdev.c
+6
-6
No files found.
drivers/video/kyro/fbdev.c
View file @
a85dd084
...
...
@@ -592,11 +592,11 @@ static int kyrofb_ioctl(struct inode *inode, struct file *file,
{
overlay_create
ol_create
;
overlay_viewport_set
ol_viewport_set
;
void
__user
*
argp
=
(
void
__user
*
)
arg
;
switch
(
cmd
)
{
case
KYRO_IOCTL_OVERLAY_CREATE
:
copy_from_user
((
void
*
)
&
ol_create
,
(
void
*
)
arg
,
sizeof
(
overlay_create
));
copy_from_user
(
&
ol_create
,
argp
,
sizeof
(
overlay_create
));
if
(
kyro_dev_overlay_create
(
ol_create
.
ulWidth
,
ol_create
.
ulHeight
,
0
)
<
0
)
{
...
...
@@ -606,7 +606,7 @@ static int kyrofb_ioctl(struct inode *inode, struct file *file,
}
break
;
case
KYRO_IOCTL_OVERLAY_VIEWPORT_SET
:
copy_from_user
(
(
void
*
)
&
ol_viewport_set
,
(
void
*
)
arg
,
copy_from_user
(
&
ol_viewport_set
,
argp
,
sizeof
(
overlay_viewport_set
));
if
(
kyro_dev_overlay_viewport_set
(
ol_viewport_set
.
xOrgin
,
...
...
@@ -627,13 +627,13 @@ static int kyrofb_ioctl(struct inode *inode, struct file *file,
}
break
;
case
KYRO_IOCTL_UVSTRIDE
:
copy_to_user
(
(
void
*
)
arg
,
(
void
*
)
&
deviceInfo
.
ulOverlayUVStride
,
sizeof
(
unsigned
long
));
copy_to_user
(
argp
,
&
deviceInfo
.
ulOverlayUVStride
,
sizeof
(
unsigned
long
));
break
;
case
KYRO_IOCTL_STRIDE
:
copy_to_user
(
(
void
*
)
arg
,
(
void
*
)
&
deviceInfo
.
ulOverlayStride
,
sizeof
(
unsigned
long
));
copy_to_user
(
argp
,
&
deviceInfo
.
ulOverlayStride
,
sizeof
(
unsigned
long
));
break
;
case
KYRO_IOCTL_OVERLAY_OFFSET
:
copy_to_user
(
(
void
*
)
arg
,
(
void
*
)
&
deviceInfo
.
ulOverlayOffset
,
sizeof
(
unsigned
long
));
copy_to_user
(
argp
,
&
deviceInfo
.
ulOverlayOffset
,
sizeof
(
unsigned
long
));
break
;
}
...
...
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