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
0515b93c
Commit
0515b93c
authored
May 08, 2007
by
Dave Airlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm: rename badly named define and cleanup ioctl code spacing
Signed-off-by:
Dave Airlie
<
airlied@linux.ie
>
parent
453ff94c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
drivers/char/drm/drm_drv.c
drivers/char/drm/drm_drv.c
+4
-6
No files found.
drivers/char/drm/drm_drv.c
View file @
0515b93c
...
...
@@ -15,8 +15,6 @@
* #define DRIVER_DESC "Matrox G200/G400"
* #define DRIVER_DATE "20001127"
*
* #define DRIVER_IOCTL_COUNT DRM_ARRAY_SIZE( mga_ioctls )
*
* #define drm_x mga_##x
* \endcode
*/
...
...
@@ -120,7 +118,7 @@ static drm_ioctl_desc_t drm_ioctls[] = {
[
DRM_IOCTL_NR
(
DRM_IOCTL_UPDATE_DRAW
)]
=
{
drm_update_drawable_info
,
DRM_AUTH
|
DRM_MASTER
|
DRM_ROOT_ONLY
},
};
#define DR
IVER
_IOCTL_COUNT ARRAY_SIZE( drm_ioctls )
#define DR
M_CORE
_IOCTL_COUNT ARRAY_SIZE( drm_ioctls )
/**
* Take down the DRM device.
...
...
@@ -496,11 +494,11 @@ int drm_ioctl(struct inode *inode, struct file *filp,
(
long
)
old_encode_dev
(
priv
->
head
->
device
),
priv
->
authenticated
);
if
((
nr
>=
DR
IVER
_IOCTL_COUNT
)
&&
if
((
nr
>=
DR
M_CORE
_IOCTL_COUNT
)
&&
((
nr
<
DRM_COMMAND_BASE
)
||
(
nr
>=
DRM_COMMAND_END
)))
goto
err_i1
;
if
((
nr
>=
DRM_COMMAND_BASE
)
&&
(
nr
<
DRM_COMMAND_END
)
&&
(
nr
<
DRM_COMMAND_BASE
+
dev
->
driver
->
num_ioctls
))
if
((
nr
>=
DRM_COMMAND_BASE
)
&&
(
nr
<
DRM_COMMAND_END
)
&&
(
nr
<
DRM_COMMAND_BASE
+
dev
->
driver
->
num_ioctls
))
ioctl
=
&
dev
->
driver
->
ioctls
[
nr
-
DRM_COMMAND_BASE
];
else
if
((
nr
>=
DRM_COMMAND_END
)
||
(
nr
<
DRM_COMMAND_BASE
))
ioctl
=
&
drm_ioctls
[
nr
];
...
...
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