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
fe357594
Commit
fe357594
authored
Sep 12, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/i2c-2.6
parents
7140df08
c47fd0d5
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
45 additions
and
46 deletions
+45
-46
drivers/i2c/busses/i2c-ali1535.c
drivers/i2c/busses/i2c-ali1535.c
+1
-2
drivers/i2c/busses/i2c-ali15x3.c
drivers/i2c/busses/i2c-ali15x3.c
+1
-2
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
-2
drivers/i2c/busses/i2c-i801.c
drivers/i2c/busses/i2c-i801.c
+1
-2
drivers/i2c/busses/i2c-isa.c
drivers/i2c/busses/i2c-isa.c
+9
-1
drivers/i2c/busses/i2c-nforce2.c
drivers/i2c/busses/i2c-nforce2.c
+1
-2
drivers/i2c/busses/i2c-piix4.c
drivers/i2c/busses/i2c-piix4.c
+1
-2
drivers/i2c/busses/i2c-sis96x.c
drivers/i2c/busses/i2c-sis96x.c
+1
-2
drivers/i2c/busses/i2c-viapro.c
drivers/i2c/busses/i2c-viapro.c
+1
-2
drivers/i2c/chips/adm1021.c
drivers/i2c/chips/adm1021.c
+1
-1
drivers/i2c/chips/it87.c
drivers/i2c/chips/it87.c
+1
-1
drivers/i2c/chips/lm75.c
drivers/i2c/chips/lm75.c
+1
-1
drivers/i2c/chips/lm78.c
drivers/i2c/chips/lm78.c
+1
-1
drivers/i2c/chips/lm85.c
drivers/i2c/chips/lm85.c
+5
-5
drivers/i2c/chips/via686a.c
drivers/i2c/chips/via686a.c
+1
-1
drivers/i2c/chips/w83781d.c
drivers/i2c/chips/w83781d.c
+4
-4
drivers/i2c/i2c-core.c
drivers/i2c/i2c-core.c
+2
-4
drivers/i2c/scx200_acb.c
drivers/i2c/scx200_acb.c
+1
-1
drivers/media/video/msp3400.c
drivers/media/video/msp3400.c
+1
-1
drivers/media/video/saa5249.c
drivers/media/video/saa5249.c
+1
-1
drivers/media/video/tuner.c
drivers/media/video/tuner.c
+2
-2
drivers/video/matrox/i2c-matroxfb.c
drivers/video/matrox/i2c-matroxfb.c
+1
-1
include/linux/i2c-id.h
include/linux/i2c-id.h
+1
-1
include/linux/i2c.h
include/linux/i2c.h
+4
-2
No files found.
drivers/i2c/busses/i2c-ali1535.c
View file @
fe357594
...
...
@@ -481,7 +481,6 @@ static struct i2c_algorithm smbus_algorithm = {
static
struct
i2c_adapter
ali1535_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_ALI1535
,
.
algo
=
&
smbus_algorithm
,
.
name
=
"unset"
,
};
...
...
@@ -507,7 +506,7 @@ static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_
/* set up the driverfs linkage to our parent device */
ali1535_adapter
.
dev
.
parent
=
&
dev
->
dev
;
snprintf
(
ali1535_adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
ali1535_adapter
.
name
,
I2C
_NAME_SIZE
,
"SMBus ALI1535 adapter at %04x"
,
ali1535_smba
);
return
i2c_add_adapter
(
&
ali1535_adapter
);
}
...
...
drivers/i2c/busses/i2c-ali15x3.c
View file @
fe357594
...
...
@@ -471,7 +471,6 @@ static struct i2c_algorithm smbus_algorithm = {
static
struct
i2c_adapter
ali15x3_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_ALI15X3
,
.
class
=
I2C_ADAP_CLASS_SMBUS
,
.
algo
=
&
smbus_algorithm
,
.
name
=
"unset"
,
...
...
@@ -498,7 +497,7 @@ static int __devinit ali15x3_probe(struct pci_dev *dev, const struct pci_device_
/* set up the driverfs linkage to our parent device */
ali15x3_adapter
.
dev
.
parent
=
&
dev
->
dev
;
snprintf
(
ali15x3_adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
ali15x3_adapter
.
name
,
I2C
_NAME_SIZE
,
"SMBus ALI15X3 adapter at %04x"
,
ali15x3_smba
);
return
i2c_add_adapter
(
&
ali15x3_adapter
);
}
...
...
drivers/i2c/busses/i2c-amd756.c
View file @
fe357594
...
...
@@ -304,7 +304,6 @@ static struct i2c_algorithm smbus_algorithm = {
static
struct
i2c_adapter
amd756_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_AMD756
,
.
class
=
I2C_ADAP_CLASS_SMBUS
,
.
algo
=
&
smbus_algorithm
,
.
name
=
"unset"
,
...
...
@@ -369,7 +368,7 @@ static int __devinit amd756_probe(struct pci_dev *pdev,
/* set up the driverfs linkage to our parent device */
amd756_adapter
.
dev
.
parent
=
&
pdev
->
dev
;
snprintf
(
amd756_adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
amd756_adapter
.
name
,
I2C
_NAME_SIZE
,
"SMBus AMD75x adapter at %04x"
,
amd756_ioport
);
error
=
i2c_add_adapter
(
&
amd756_adapter
);
...
...
drivers/i2c/busses/i2c-amd8111.c
View file @
fe357594
...
...
@@ -356,9 +356,8 @@ static int __devinit amd8111_probe(struct pci_dev *dev, const struct pci_device_
goto
out_kfree
;
smbus
->
adapter
.
owner
=
THIS_MODULE
;
snprintf
(
smbus
->
adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
smbus
->
adapter
.
name
,
I2C
_NAME_SIZE
,
"SMBus2 AMD8111 adapter at %04x"
,
smbus
->
base
);
smbus
->
adapter
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_AMD8111
;
smbus
->
adapter
.
class
=
I2C_ADAP_CLASS_SMBUS
;
smbus
->
adapter
.
algo
=
&
smbus_algorithm
;
smbus
->
adapter
.
algo_data
=
smbus
;
...
...
drivers/i2c/busses/i2c-i801.c
View file @
fe357594
...
...
@@ -540,7 +540,6 @@ static struct i2c_algorithm smbus_algorithm = {
static
struct
i2c_adapter
i801_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_I801
,
.
class
=
I2C_ADAP_CLASS_SMBUS
,
.
algo
=
&
smbus_algorithm
,
.
name
=
"unset"
,
...
...
@@ -598,7 +597,7 @@ static int __devinit i801_probe(struct pci_dev *dev, const struct pci_device_id
/* set up the driverfs linkage to our parent device */
i801_adapter
.
dev
.
parent
=
&
dev
->
dev
;
snprintf
(
i801_adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
i801_adapter
.
name
,
I2C
_NAME_SIZE
,
"SMBus I801 adapter at %04x"
,
i801_smba
);
return
i2c_add_adapter
(
&
i801_adapter
);
}
...
...
drivers/i2c/busses/i2c-isa.c
View file @
fe357594
...
...
@@ -30,21 +30,29 @@
#include <linux/errno.h>
#include <linux/i2c.h>
static
u32
isa_func
(
struct
i2c_adapter
*
adapter
);
/* This is the actual algorithm we define */
static
struct
i2c_algorithm
isa_algorithm
=
{
.
name
=
"ISA bus algorithm"
,
.
id
=
I2C_ALGO_ISA
,
.
functionality
=
isa_func
,
};
/* There can only be one... */
static
struct
i2c_adapter
isa_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_ISA
|
I2C_HW_ISA
,
.
class
=
I2C_ADAP_CLASS_SMBUS
,
.
algo
=
&
isa_algorithm
,
.
name
=
"ISA main adapter"
,
};
/* We can't do a thing... */
static
u32
isa_func
(
struct
i2c_adapter
*
adapter
)
{
return
0
;
}
static
int
__init
i2c_isa_init
(
void
)
{
return
i2c_add_adapter
(
&
isa_adapter
);
...
...
drivers/i2c/busses/i2c-nforce2.c
View file @
fe357594
...
...
@@ -118,7 +118,6 @@ static struct i2c_algorithm smbus_algorithm = {
static
struct
i2c_adapter
nforce2_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_NFORCE2
,
.
class
=
I2C_ADAP_CLASS_SMBUS
,
.
algo
=
&
smbus_algorithm
,
.
name
=
"unset"
,
...
...
@@ -321,7 +320,7 @@ static int __devinit nforce2_probe_smb (struct pci_dev *dev, int reg,
smbus
->
adapter
=
nforce2_adapter
;
smbus
->
adapter
.
algo_data
=
smbus
;
smbus
->
adapter
.
dev
.
parent
=
&
dev
->
dev
;
snprintf
(
smbus
->
adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
smbus
->
adapter
.
name
,
I2C
_NAME_SIZE
,
"SMBus nForce2 adapter at %04x"
,
smbus
->
base
);
error
=
i2c_add_adapter
(
&
smbus
->
adapter
);
...
...
drivers/i2c/busses/i2c-piix4.c
View file @
fe357594
...
...
@@ -395,7 +395,6 @@ static struct i2c_algorithm smbus_algorithm = {
static
struct
i2c_adapter
piix4_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_PIIX4
,
.
class
=
I2C_ADAP_CLASS_SMBUS
,
.
algo
=
&
smbus_algorithm
,
.
name
=
"unset"
,
...
...
@@ -451,7 +450,7 @@ static int __devinit piix4_probe(struct pci_dev *dev, const struct pci_device_id
/* set up the driverfs linkage to our parent device */
piix4_adapter
.
dev
.
parent
=
&
dev
->
dev
;
snprintf
(
piix4_adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
piix4_adapter
.
name
,
I2C
_NAME_SIZE
,
"SMBus PIIX4 adapter at %04x"
,
piix4_smba
);
retval
=
i2c_add_adapter
(
&
piix4_adapter
);
...
...
drivers/i2c/busses/i2c-sis96x.c
View file @
fe357594
...
...
@@ -261,7 +261,6 @@ static struct i2c_algorithm smbus_algorithm = {
static
struct
i2c_adapter
sis96x_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_SIS96X
,
.
class
=
I2C_ADAP_CLASS_SMBUS
,
.
algo
=
&
smbus_algorithm
,
.
name
=
"unset"
,
...
...
@@ -318,7 +317,7 @@ static int __devinit sis96x_probe(struct pci_dev *dev,
/* set up the driverfs linkage to our parent device */
sis96x_adapter
.
dev
.
parent
=
&
dev
->
dev
;
snprintf
(
sis96x_adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
sis96x_adapter
.
name
,
I2C
_NAME_SIZE
,
"SiS96x SMBus adapter at 0x%04x"
,
sis96x_smbus_base
);
if
((
retval
=
i2c_add_adapter
(
&
sis96x_adapter
)))
{
...
...
drivers/i2c/busses/i2c-viapro.c
View file @
fe357594
...
...
@@ -287,7 +287,6 @@ static struct i2c_algorithm smbus_algorithm = {
static
struct
i2c_adapter
vt596_adapter
=
{
.
owner
=
THIS_MODULE
,
.
id
=
I2C_ALGO_SMBUS
|
I2C_HW_SMBUS_VIA2
,
.
class
=
I2C_ADAP_CLASS_SMBUS
,
.
algo
=
&
smbus_algorithm
,
.
name
=
"unset"
,
...
...
@@ -376,7 +375,7 @@ static int __devinit vt596_probe(struct pci_dev *pdev,
dev_dbg
(
&
pdev
->
dev
,
"VT596_smba = 0x%X
\n
"
,
vt596_smba
);
vt596_adapter
.
dev
.
parent
=
&
pdev
->
dev
;
snprintf
(
vt596_adapter
.
name
,
DEVICE
_NAME_SIZE
,
snprintf
(
vt596_adapter
.
name
,
I2C
_NAME_SIZE
,
"SMBus Via Pro adapter at %04x"
,
vt596_smba
);
return
i2c_add_adapter
(
&
vt596_adapter
);
...
...
drivers/i2c/chips/adm1021.c
View file @
fe357594
...
...
@@ -320,7 +320,7 @@ static int adm1021_detect(struct i2c_adapter *adapter, int address, int kind)
}
/* Fill in the remaining client fields and put it into the global list */
strlcpy
(
new_client
->
name
,
client_name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
client_name
,
I2C
_NAME_SIZE
);
data
->
type
=
kind
;
new_client
->
id
=
adm1021_id
++
;
...
...
drivers/i2c/chips/it87.c
View file @
fe357594
...
...
@@ -692,7 +692,7 @@ int it87_detect(struct i2c_adapter *adapter, int address, int kind)
}
/* Fill in the remaining client fields and put it into the global list */
strlcpy
(
new_client
->
name
,
name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
name
,
I2C
_NAME_SIZE
);
data
->
type
=
kind
;
...
...
drivers/i2c/chips/lm75.c
View file @
fe357594
...
...
@@ -194,7 +194,7 @@ static int lm75_detect(struct i2c_adapter *adapter, int address, int kind)
}
/* Fill in the remaining client fields and put it into the global list */
strlcpy
(
new_client
->
name
,
name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
name
,
I2C
_NAME_SIZE
);
new_client
->
id
=
lm75_id
++
;
data
->
valid
=
0
;
...
...
drivers/i2c/chips/lm78.c
View file @
fe357594
...
...
@@ -638,7 +638,7 @@ int lm78_detect(struct i2c_adapter *adapter, int address, int kind)
}
/* Fill in the remaining client fields and put into the global list */
strlcpy
(
new_client
->
name
,
client_name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
client_name
,
I2C
_NAME_SIZE
);
data
->
type
=
kind
;
data
->
valid
=
0
;
...
...
drivers/i2c/chips/lm85.c
View file @
fe357594
...
...
@@ -853,19 +853,19 @@ int lm85_detect(struct i2c_adapter *adapter, int address,
/* Fill in the chip specific driver values */
if
(
kind
==
any_chip
)
{
type_name
=
"lm85"
;
strlcpy
(
new_client
->
name
,
"Generic LM85"
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
"Generic LM85"
,
I2C
_NAME_SIZE
);
}
else
if
(
kind
==
lm85b
)
{
type_name
=
"lm85b"
;
strlcpy
(
new_client
->
name
,
"National LM85-B"
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
"National LM85-B"
,
I2C
_NAME_SIZE
);
}
else
if
(
kind
==
lm85c
)
{
type_name
=
"lm85c"
;
strlcpy
(
new_client
->
name
,
"National LM85-C"
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
"National LM85-C"
,
I2C
_NAME_SIZE
);
}
else
if
(
kind
==
adm1027
)
{
type_name
=
"adm1027"
;
strlcpy
(
new_client
->
name
,
"Analog Devices ADM1027"
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
"Analog Devices ADM1027"
,
I2C
_NAME_SIZE
);
}
else
if
(
kind
==
adt7463
)
{
type_name
=
"adt7463"
;
strlcpy
(
new_client
->
name
,
"Analog Devices ADT7463"
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
"Analog Devices ADT7463"
,
I2C
_NAME_SIZE
);
}
else
{
dev_dbg
(
&
adapter
->
dev
,
"Internal error, invalid kind (%d)!"
,
kind
);
err
=
-
EFAULT
;
...
...
drivers/i2c/chips/via686a.c
View file @
fe357594
...
...
@@ -727,7 +727,7 @@ static int via686a_detect(struct i2c_adapter *adapter, int address, int kind)
new_client
->
dev
.
parent
=
&
adapter
->
dev
;
/* Fill in the remaining client fields and put into the global list */
snprintf
(
new_client
->
name
,
DEVICE
_NAME_SIZE
,
client_name
);
snprintf
(
new_client
->
name
,
I2C
_NAME_SIZE
,
client_name
);
data
->
valid
=
0
;
init_MUTEX
(
&
data
->
update_lock
);
...
...
drivers/i2c/chips/w83781d.c
View file @
fe357594
...
...
@@ -378,8 +378,8 @@ static ssize_t store_in_##reg (struct device *dev, const char *buf, size_t count
struct w83781d_data *data = i2c_get_clientdata(client); \
u32 val; \
\
val = simple_strtoul(buf, NULL, 10); \
data->in_##reg[nr] =
(IN_TO_REG(val) / 10
); \
val = simple_strtoul(buf, NULL, 10)
/ 10
; \
data->in_##reg[nr] =
IN_TO_REG(val
); \
w83781d_write_value(client, W83781D_REG_IN_##REG(nr), data->in_##reg[nr]); \
\
return count; \
...
...
@@ -1117,7 +1117,7 @@ w83781d_detect_subclients(struct i2c_adapter *adapter, int address, int kind,
data
->
lm75
[
i
]
->
driver
=
&
w83781d_driver
;
data
->
lm75
[
i
]
->
flags
=
0
;
strlcpy
(
data
->
lm75
[
i
]
->
name
,
client_name
,
DEVICE
_NAME_SIZE
);
I2C
_NAME_SIZE
);
if
((
err
=
i2c_attach_client
(
data
->
lm75
[
i
])))
{
dev_err
(
&
new_client
->
dev
,
"Subclient %d "
"registration at address 0x%x "
...
...
@@ -1326,7 +1326,7 @@ w83781d_detect(struct i2c_adapter *adapter, int address, int kind)
}
/* Fill in the remaining client fields and put into the global list */
strlcpy
(
new_client
->
name
,
client_name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
new_client
->
name
,
client_name
,
I2C
_NAME_SIZE
);
data
->
type
=
kind
;
data
->
valid
=
0
;
...
...
drivers/i2c/i2c-core.c
View file @
fe357594
...
...
@@ -581,8 +581,7 @@ int i2c_master_send(struct i2c_client *client,const char *buf ,int count)
*/
return
(
ret
==
1
)
?
count
:
ret
;
}
else
{
printk
(
KERN_ERR
"i2c-core.o: I2C adapter %04x: I2C level transfers not supported
\n
"
,
client
->
adapter
->
id
);
dev_err
(
&
client
->
adapter
->
dev
,
"I2C level transfers not supported
\n
"
);
return
-
ENOSYS
;
}
}
...
...
@@ -614,8 +613,7 @@ int i2c_master_recv(struct i2c_client *client, char *buf ,int count)
*/
return
(
ret
==
1
)
?
count
:
ret
;
}
else
{
printk
(
KERN_DEBUG
"i2c-core.o: I2C adapter %04x: I2C level transfers not supported
\n
"
,
client
->
adapter
->
id
);
dev_err
(
&
client
->
adapter
->
dev
,
"I2C level transfers not supported
\n
"
);
return
-
ENOSYS
;
}
}
...
...
drivers/i2c/scx200_acb.c
View file @
fe357594
...
...
@@ -456,7 +456,7 @@ static int __init scx200_acb_create(int base, int index)
memset
(
iface
,
0
,
sizeof
(
*
iface
));
adapter
=
&
iface
->
adapter
;
i2c_set_adapdata
(
adapter
,
iface
);
snprintf
(
adapter
->
name
,
DEVICE
_NAME_SIZE
,
"SCx200 ACB%d"
,
index
);
snprintf
(
adapter
->
name
,
I2C
_NAME_SIZE
,
"SCx200 ACB%d"
,
index
);
adapter
->
owner
=
THIS_MODULE
;
adapter
->
id
=
I2C_ALGO_SMBUS
;
adapter
->
algo
=
&
scx200_acb_algorithm
;
...
...
drivers/media/video/msp3400.c
View file @
fe357594
...
...
@@ -1316,7 +1316,7 @@ static int msp_attach(struct i2c_adapter *adap, int addr, int kind)
#endif
msp3400c_setvolume
(
c
,
msp
->
muted
,
msp
->
left
,
msp
->
right
);
snprintf
(
c
->
name
,
DEVICE
_NAME_SIZE
,
"MSP34%02d%c-%c%d"
,
snprintf
(
c
->
name
,
I2C
_NAME_SIZE
,
"MSP34%02d%c-%c%d"
,
(
msp
->
rev2
>>
8
)
&
0xff
,
(
msp
->
rev1
&
0xff
)
+
'@'
,
((
msp
->
rev1
>>
8
)
&
0xff
)
+
'@'
,
msp
->
rev2
&
0x1f
);
...
...
drivers/media/video/saa5249.c
View file @
fe357594
...
...
@@ -171,7 +171,7 @@ static int saa5249_attach(struct i2c_adapter *adap, int addr, int kind)
return
-
ENOMEM
;
}
memset
(
t
,
0
,
sizeof
(
*
t
));
strlcpy
(
client
->
name
,
IF_NAME
,
DEVICE
_NAME_SIZE
);
strlcpy
(
client
->
name
,
IF_NAME
,
I2C
_NAME_SIZE
);
init_MUTEX
(
&
t
->
lock
);
/*
...
...
drivers/media/video/tuner.c
View file @
fe357594
...
...
@@ -824,7 +824,7 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
if
(
type
<
TUNERS
)
{
t
->
type
=
type
;
printk
(
"tuner(bttv): type forced to %d (%s) [insmod]
\n
"
,
t
->
type
,
tuners
[
t
->
type
].
name
);
strlcpy
(
client
->
name
,
tuners
[
t
->
type
].
name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
client
->
name
,
tuners
[
t
->
type
].
name
,
I2C
_NAME_SIZE
);
}
i2c_attach_client
(
client
);
if
(
t
->
type
==
TUNER_MT2032
)
...
...
@@ -875,7 +875,7 @@ tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
t
->
type
=
*
iarg
;
printk
(
"tuner: type set to %d (%s)
\n
"
,
t
->
type
,
tuners
[
t
->
type
].
name
);
strlcpy
(
client
->
name
,
tuners
[
t
->
type
].
name
,
DEVICE
_NAME_SIZE
);
strlcpy
(
client
->
name
,
tuners
[
t
->
type
].
name
,
I2C
_NAME_SIZE
);
if
(
t
->
type
==
TUNER_MT2032
)
mt2032_init
(
client
);
break
;
...
...
drivers/video/matrox/i2c-matroxfb.c
View file @
fe357594
...
...
@@ -111,7 +111,7 @@ static int i2c_bus_reg(struct i2c_bit_adapter* b, struct matrox_fb_info* minfo,
b
->
mask
.
data
=
data
;
b
->
mask
.
clock
=
clock
;
b
->
adapter
=
matrox_i2c_adapter_template
;
snprintf
(
b
->
adapter
.
name
,
DEVICE
_NAME_SIZE
,
name
,
snprintf
(
b
->
adapter
.
name
,
I2C
_NAME_SIZE
,
name
,
minfo
->
fbcon
.
node
);
i2c_set_adapdata
(
&
b
->
adapter
,
b
);
b
->
adapter
.
algo_data
=
&
b
->
bac
;
...
...
include/linux/i2c-id.h
View file @
fe357594
...
...
@@ -100,7 +100,7 @@
#define I2C_DRIVERID_STM41T00 52
/* real time clock */
#define I2C_DRIVERID_UDA1342 53
/* UDA1342 audio codec */
#define I2C_DRIVERID_ADV7170 54
/* video encoder */
#define I2C_DRIVERID_RADEON 55
/* I2C bus on Radeon boards */
#define I2C_DRIVERID_EXP0 0xF0
/* experimental use id's */
...
...
include/linux/i2c.h
View file @
fe357594
...
...
@@ -146,6 +146,8 @@ struct i2c_driver {
extern
struct
bus_type
i2c_bus_type
;
#define I2C_NAME_SIZE 50
/*
* i2c_client identifies a single device (i.e. chip) that is connected to an
* i2c bus. The behaviour is defined by the routines of the driver. This
...
...
@@ -166,7 +168,7 @@ struct i2c_client {
/* to the client */
struct
device
dev
;
/* the device structure */
struct
list_head
list
;
char
name
[
DEVICE
_NAME_SIZE
];
char
name
[
I2C
_NAME_SIZE
];
struct
completion
released
;
};
#define to_i2c_client(d) container_of(d, struct i2c_client, dev)
...
...
@@ -253,7 +255,7 @@ struct i2c_adapter {
int
nr
;
struct
list_head
clients
;
struct
list_head
list
;
char
name
[
DEVICE
_NAME_SIZE
];
char
name
[
I2C
_NAME_SIZE
];
struct
completion
dev_released
;
struct
completion
class_dev_released
;
};
...
...
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