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
cacdd414
Commit
cacdd414
authored
Mar 21, 2003
by
Greg Kroah-Hartman
Committed by
Petr Vandrovec
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c: Removed the name variable from i2c_client as the dev one should be used instead.
parent
b56a1471
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
drivers/i2c/chips/adm1021.c
drivers/i2c/chips/adm1021.c
+1
-1
drivers/i2c/chips/lm75.c
drivers/i2c/chips/lm75.c
+1
-1
drivers/i2c/i2c-core.c
drivers/i2c/i2c-core.c
+7
-7
drivers/i2c/i2c-dev.c
drivers/i2c/i2c-dev.c
+3
-1
include/linux/i2c.h
include/linux/i2c.h
+0
-1
No files found.
drivers/i2c/chips/adm1021.c
View file @
cacdd414
...
...
@@ -299,7 +299,7 @@ static int adm1021_detect(struct i2c_adapter *adapter, int address,
}
/* Fill in the remaining client fields and put it into the global list */
str
cpy
(
new_client
->
name
,
client_name
);
str
ncpy
(
new_client
->
dev
.
name
,
client_name
,
DEVICE_NAME_SIZE
);
data
->
type
=
kind
;
new_client
->
id
=
adm1021_id
++
;
...
...
drivers/i2c/chips/lm75.c
View file @
cacdd414
...
...
@@ -180,7 +180,7 @@ static int lm75_detect(struct i2c_adapter *adapter, int address,
}
/* Fill in the remaining client fields and put it into the global list */
str
cpy
(
new_client
->
name
,
client_name
);
str
ncpy
(
new_client
->
dev
.
name
,
client_name
,
DEVICE_NAME_SIZE
);
new_client
->
id
=
lm75_id
++
;
data
->
valid
=
0
;
...
...
drivers/i2c/i2c-core.c
View file @
cacdd414
...
...
@@ -291,7 +291,7 @@ int i2c_del_driver(struct i2c_driver *driver)
client
->
driver
==
driver
)
{
DEB2
(
printk
(
KERN_DEBUG
"i2c-core.o: "
"detaching client %s:
\n
"
,
client
->
name
));
client
->
dev
.
name
));
if
((
res
=
driver
->
detach_client
(
client
)))
{
dev_err
(
&
adap
->
dev
,
"while "
"unregistering driver "
...
...
@@ -355,7 +355,7 @@ int i2c_attach_client(struct i2c_client *client)
printk
(
KERN_WARNING
" i2c-core.o: attach_client(%s) - enlarge I2C_CLIENT_MAX.
\n
"
,
client
->
name
);
client
->
dev
.
name
);
out_unlock_list:
up
(
&
adapter
->
list
);
...
...
@@ -374,7 +374,7 @@ int i2c_attach_client(struct i2c_client *client)
}
DEB
(
dev_dbg
(
&
adapter
->
dev
,
"client [%s] registered to adapter "
"(pos. %d).
\n
"
,
client
->
name
,
i
));
"(pos. %d).
\n
"
,
client
->
dev
.
name
,
i
));
if
(
client
->
flags
&
I2C_CLIENT_ALLOW_USE
)
client
->
usage_count
=
0
;
...
...
@@ -395,7 +395,7 @@ int i2c_detach_client(struct i2c_client *client)
if
(
res
)
{
printk
(
KERN_ERR
"i2c-core.o: client_unregister [%s] failed, "
"client not detached"
,
client
->
name
);
"client not detached"
,
client
->
dev
.
name
);
goto
out
;
}
}
...
...
@@ -410,7 +410,7 @@ int i2c_detach_client(struct i2c_client *client)
printk
(
KERN_WARNING
" i2c-core.o: unregister_client [%s] not found
\n
"
,
client
->
name
);
client
->
dev
.
name
);
res
=
-
ENODEV
;
out_unlock:
...
...
@@ -522,7 +522,7 @@ static ssize_t i2cproc_bus_read(struct file *file, char *buf,
client
=
adapters
[
i
]
->
clients
[
order
[
j
]];
len
+=
sprintf
(
kbuf
+
len
,
"%02x
\t
%-32s
\t
%-32s
\n
"
,
client
->
addr
,
client
->
name
,
client
->
dev
.
name
,
client
->
driver
->
name
);
}
len
=
len
-
file
->
f_pos
;
...
...
drivers/i2c/i2c-dev.c
View file @
cacdd414
...
...
@@ -86,7 +86,9 @@ static struct i2c_driver i2cdev_driver = {
};
static
struct
i2c_client
i2cdev_client_template
=
{
.
dev
=
{
.
name
=
"I2C /dev entry"
,
},
.
id
=
1
,
.
addr
=
-
1
,
.
driver
=
&
i2cdev_driver
,
...
...
include/linux/i2c.h
View file @
cacdd414
...
...
@@ -156,7 +156,6 @@ extern struct bus_type i2c_bus_type;
* function is mainly used for lookup & other admin. functions.
*/
struct
i2c_client
{
char
name
[
32
];
int
id
;
unsigned
int
flags
;
/* div., see below */
unsigned
int
addr
;
/* chip address - NOTE: 7bit */
...
...
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