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
95fb6dd7
Commit
95fb6dd7
authored
Dec 03, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/i2c: fix some blatant abuse
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
8d90d1ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
+2
-2
drivers/gpu/drm/nouveau/core/subdev/i2c/pad.h
drivers/gpu/drm/nouveau/core/subdev/i2c/pad.h
+1
-1
No files found.
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
View file @
95fb6dd7
...
@@ -494,8 +494,8 @@ nouveau_i2c_create_port(struct nouveau_i2c *i2c, int index, u8 type,
...
@@ -494,8 +494,8 @@ nouveau_i2c_create_port(struct nouveau_i2c *i2c, int index, u8 type,
oclass
=
impl
->
pad_x
;
oclass
=
impl
->
pad_x
;
}
}
ret
=
nouveau_object_ctor
(
NULL
,
nv_object
(
i2c
),
oclass
,
NULL
,
pad
,
ret
=
nouveau_object_ctor
(
nv_object
(
i2c
),
nv_object
(
i2c
),
oclass
,
&
parent
);
NULL
,
pad
,
&
parent
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
;
return
;
...
...
drivers/gpu/drm/nouveau/core/subdev/i2c/pad.h
View file @
95fb6dd7
...
@@ -14,7 +14,7 @@ static inline struct nvkm_i2c_pad *
...
@@ -14,7 +14,7 @@ static inline struct nvkm_i2c_pad *
nvkm_i2c_pad
(
struct
nouveau_i2c_port
*
port
)
nvkm_i2c_pad
(
struct
nouveau_i2c_port
*
port
)
{
{
struct
nouveau_object
*
pad
=
nv_object
(
port
);
struct
nouveau_object
*
pad
=
nv_object
(
port
);
while
(
pad
->
parent
)
while
(
!
nv_iclass
(
pad
->
parent
,
NV_SUBDEV_CLASS
)
)
pad
=
pad
->
parent
;
pad
=
pad
->
parent
;
return
(
void
*
)
pad
;
return
(
void
*
)
pad
;
}
}
...
...
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