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
24cd42ee
Commit
24cd42ee
authored
Apr 23, 2003
by
Greg Kroah-Hartman
Committed by
Christoph Hellwig
Apr 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] i2c: removed unused flags paramater in found_proc callback.
parent
3371decd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
drivers/i2c/i2c-core.c
drivers/i2c/i2c-core.c
+4
-4
include/linux/i2c.h
include/linux/i2c.h
+1
-4
No files found.
drivers/i2c/i2c-core.c
View file @
24cd42ee
...
...
@@ -618,8 +618,8 @@ int i2c_control(struct i2c_client *client,
* ----------------------------------------------------
*/
int
i2c_probe
(
struct
i2c_adapter
*
adapter
,
struct
i2c_client_address_data
*
address_data
,
i2c_client_found_addr_proc
*
found_proc
)
struct
i2c_client_address_data
*
address_data
,
int
(
*
found_proc
)
(
struct
i2c_adapter
*
,
int
,
int
)
)
{
int
addr
,
i
,
found
,
err
;
int
adap_id
=
i2c_adapter_id
(
adapter
);
...
...
@@ -644,7 +644,7 @@ int i2c_probe(struct i2c_adapter *adapter,
(
addr
==
address_data
->
force
[
i
+
1
]))
{
DEB2
(
printk
(
KERN_DEBUG
"i2c-core.o: found force parameter for adapter %d, addr %04x
\n
"
,
adap_id
,
addr
));
if
((
err
=
found_proc
(
adapter
,
addr
,
0
,
0
)))
if
((
err
=
found_proc
(
adapter
,
addr
,
0
)))
return
err
;
found
=
1
;
}
...
...
@@ -732,7 +732,7 @@ int i2c_probe(struct i2c_adapter *adapter,
/* OK, so we really should examine this address. First check
whether there is some client here at all! */
if
(
i2c_smbus_xfer
(
adapter
,
addr
,
0
,
0
,
0
,
I2C_SMBUS_QUICK
,
NULL
)
>=
0
)
if
((
err
=
found_proc
(
adapter
,
addr
,
0
,
-
1
)))
if
((
err
=
found_proc
(
adapter
,
addr
,
-
1
)))
return
err
;
}
return
0
;
...
...
include/linux/i2c.h
View file @
24cd42ee
...
...
@@ -338,12 +338,9 @@ extern int i2c_check_addr (struct i2c_adapter *adapter, int addr);
* It will only call found_proc if some client is connected at the
* specific address (unless a 'force' matched);
*/
typedef
int
i2c_client_found_addr_proc
(
struct
i2c_adapter
*
adapter
,
int
addr
,
unsigned
short
flags
,
int
kind
);
extern
int
i2c_probe
(
struct
i2c_adapter
*
adapter
,
struct
i2c_client_address_data
*
address_data
,
i
2c_client_found_addr_proc
*
found_proc
);
i
nt
(
*
found_proc
)
(
struct
i2c_adapter
*
,
int
,
int
)
);
/* An ioctl like call to set div. parameters of the adapter.
*/
...
...
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