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
eaa8e7ab
Commit
eaa8e7ab
authored
Feb 14, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/i2c: fix a bit of a thinko in nv_wri2cr helper functions
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
f3ed1048
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
+4
-4
No files found.
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
View file @
eaa8e7ab
...
...
@@ -46,13 +46,13 @@ nv_rdi2cr(struct nouveau_i2c_port *port, u8 addr, u8 reg)
int
nv_wri2cr
(
struct
nouveau_i2c_port
*
port
,
u8
addr
,
u8
reg
,
u8
val
)
{
u8
buf
[
2
]
=
{
reg
,
val
};
struct
i2c_msg
msgs
[]
=
{
{
.
addr
=
addr
,
.
flags
=
0
,
.
len
=
1
,
.
buf
=
&
reg
},
{
.
addr
=
addr
,
.
flags
=
0
,
.
len
=
1
,
.
buf
=
&
val
},
{
.
addr
=
addr
,
.
flags
=
0
,
.
len
=
2
,
.
buf
=
buf
},
};
int
ret
=
i2c_transfer
(
&
port
->
adapter
,
msgs
,
2
);
if
(
ret
!=
2
)
int
ret
=
i2c_transfer
(
&
port
->
adapter
,
msgs
,
1
);
if
(
ret
!=
1
)
return
-
EIO
;
return
0
;
...
...
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