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
bc1f1afe
Commit
bc1f1afe
authored
Jun 05, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/gregkh/linux/i2c-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
3ac7f581
31f68121
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
182 additions
and
134 deletions
+182
-134
drivers/i2c/chips/w83781d.c
drivers/i2c/chips/w83781d.c
+171
-129
drivers/i2c/i2c-core.c
drivers/i2c/i2c-core.c
+4
-5
include/linux/i2c-id.h
include/linux/i2c-id.h
+7
-0
No files found.
drivers/i2c/chips/w83781d.c
View file @
bc1f1afe
This diff is collapsed.
Click to expand it.
drivers/i2c/i2c-core.c
View file @
bc1f1afe
...
...
@@ -124,7 +124,7 @@ int i2c_add_adapter(struct i2c_adapter *adap)
int
i2c_del_adapter
(
struct
i2c_adapter
*
adap
)
{
struct
list_head
*
item
;
struct
list_head
*
item
,
*
_n
;
struct
i2c_driver
*
driver
;
struct
i2c_client
*
client
;
int
res
=
0
;
...
...
@@ -144,7 +144,7 @@ int i2c_del_adapter(struct i2c_adapter *adap)
/* detach any active clients. This must be done first, because
* it can fail; in which case we give upp. */
list_for_each
(
item
,
&
adap
->
clients
)
{
list_for_each
_safe
(
item
,
_n
,
&
adap
->
clients
)
{
client
=
list_entry
(
item
,
struct
i2c_client
,
list
);
/* detaching devices is unconditional of the set notify
...
...
@@ -215,8 +215,7 @@ int i2c_add_driver(struct i2c_driver *driver)
int
i2c_del_driver
(
struct
i2c_driver
*
driver
)
{
struct
list_head
*
item1
;
struct
list_head
*
item2
;
struct
list_head
*
item1
,
*
item2
,
*
_n
;
struct
i2c_client
*
client
;
struct
i2c_adapter
*
adap
;
...
...
@@ -245,7 +244,7 @@ int i2c_del_driver(struct i2c_driver *driver)
goto
out_unlock
;
}
}
else
{
list_for_each
(
item2
,
&
adap
->
clients
)
{
list_for_each
_safe
(
item2
,
_n
,
&
adap
->
clients
)
{
client
=
list_entry
(
item2
,
struct
i2c_client
,
list
);
if
(
client
->
driver
!=
driver
)
continue
;
...
...
include/linux/i2c-id.h
View file @
bc1f1afe
...
...
@@ -98,6 +98,7 @@
#define I2C_DRIVERID_ZR36120 50
/* Zoran 36120 video encoder */
#define I2C_DRIVERID_24LC32A 51
/* Microchip 24LC32A 32k EEPROM */
#define I2C_DRIVERID_STM41T00 52
/* real time clock */
#define I2C_DRIVERID_UDA1342 53
/* UDA1342 audio codec */
...
...
@@ -178,6 +179,7 @@
#define I2C_ALGO_MPC8XX 0x110000
/* MPC8xx PowerPC I2C algorithm */
#define I2C_ALGO_OCP 0x120000
/* IBM or otherwise On-chip I2C algorithm */
#define I2C_ALGO_BITHS 0x130000
/* enhanced bit style adapters */
#define I2C_ALGO_OCP_IOP3XX 0x140000
/* XSCALE IOP3XX On-chip I2C alg */
#define I2C_ALGO_EXP 0x800000
/* experimental */
...
...
@@ -213,6 +215,9 @@
#define I2C_HW_B_FRODO 0x13
/* 2d3D, Inc. SA-1110 Development Board */
#define I2C_HW_B_OMAHA 0x14
/* Omaha I2C interface (ARM) */
#define I2C_HW_B_GUIDE 0x15
/* Guide bit-basher */
#define I2C_HW_B_IXP2000 0x16
/* GPIO on IXP2000 systems */
#define I2C_HW_B_IXP425 0x17
/* GPIO on IXP425 systems */
#define I2C_HW_B_S3VIA 0x18
/* S3Via ProSavage adapter */
/* --- PCF 8584 based algorithms */
#define I2C_HW_P_LP 0x00
/* Parallel port interface */
...
...
@@ -234,6 +239,8 @@
/* --- PowerPC on-chip adapters */
#define I2C_HW_OCP 0x00
/* IBM on-chip I2C adapter */
/* --- XSCALE on-chip adapters */
#define I2C_HW_IOP321 0x00
/* --- SMBus only adapters */
#define I2C_HW_SMBUS_PIIX4 0x00
...
...
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