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
nexedi
linux
Commits
53a01385
Commit
53a01385
authored
Dec 18, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linuxusb@linuxusb.bkbits.net/i2c-2.6
into kroah.com:/home/greg/linux/BK/i2c-2.6
parents
67e9bb60
ac1b535d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
drivers/i2c/busses/i2c-amd756.c
drivers/i2c/busses/i2c-amd756.c
+1
-2
drivers/i2c/busses/i2c-amd8111.c
drivers/i2c/busses/i2c-amd8111.c
+1
-1
No files found.
drivers/i2c/busses/i2c-amd756.c
View file @
53a01385
...
@@ -213,9 +213,8 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr,
...
@@ -213,9 +213,8 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr,
case
I2C_SMBUS_BYTE
:
case
I2C_SMBUS_BYTE
:
outw_p
(((
addr
&
0x7f
)
<<
1
)
|
(
read_write
&
0x01
),
outw_p
(((
addr
&
0x7f
)
<<
1
)
|
(
read_write
&
0x01
),
SMB_HOST_ADDRESS
);
SMB_HOST_ADDRESS
);
/* TODO: Why only during write? */
if
(
read_write
==
I2C_SMBUS_WRITE
)
if
(
read_write
==
I2C_SMBUS_WRITE
)
outb_p
(
command
,
SMB_HOST_
COMMAND
);
outb_p
(
command
,
SMB_HOST_
DATA
);
size
=
AMD756_BYTE
;
size
=
AMD756_BYTE
;
break
;
break
;
case
I2C_SMBUS_BYTE_DATA
:
case
I2C_SMBUS_BYTE_DATA
:
...
...
drivers/i2c/busses/i2c-amd8111.c
View file @
53a01385
...
@@ -192,7 +192,7 @@ s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
...
@@ -192,7 +192,7 @@ s32 amd8111_access(struct i2c_adapter * adap, u16 addr, unsigned short flags,
case
I2C_SMBUS_BYTE
:
case
I2C_SMBUS_BYTE
:
if
(
read_write
==
I2C_SMBUS_WRITE
)
if
(
read_write
==
I2C_SMBUS_WRITE
)
amd_ec_write
(
smbus
,
AMD_SMB_
DATA
,
data
->
byte
);
amd_ec_write
(
smbus
,
AMD_SMB_
CMD
,
command
);
protocol
|=
AMD_SMB_PRTCL_BYTE
;
protocol
|=
AMD_SMB_PRTCL_BYTE
;
break
;
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