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
a10ce1d4
Commit
a10ce1d4
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 unneeded typedef from i2c-sensor.h
parent
bb8d67e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
drivers/i2c/i2c-sensor.c
drivers/i2c/i2c-sensor.c
+2
-2
include/linux/i2c-sensor.h
include/linux/i2c-sensor.h
+2
-5
No files found.
drivers/i2c/i2c-sensor.c
View file @
a10ce1d4
...
...
@@ -35,8 +35,8 @@
/* Very inefficient for ISA detects, and won't work for 10-bit addresses! */
int
i2c_detect
(
struct
i2c_adapter
*
adapter
,
struct
i2c_address_data
*
address_data
,
i2c_found_addr_proc
*
found_proc
)
struct
i2c_address_data
*
address_data
,
int
(
*
found_proc
)
(
struct
i2c_adapter
*
,
int
,
int
)
)
{
int
addr
,
i
,
found
,
j
,
err
;
struct
i2c_force_data
*
this_force
;
...
...
include/linux/i2c-sensor.h
View file @
a10ce1d4
...
...
@@ -315,16 +315,13 @@ struct i2c_address_data {
{NULL}}; \
SENSORS_INSMOD
typedef
int
i2c_found_addr_proc
(
struct
i2c_adapter
*
adapter
,
int
addr
,
int
kind
);
/* Detect function. It iterates over all possible addresses itself. For
SMBus addresses, it will only call found_proc if some client is connected
to the SMBus (unless a 'force' matched); for ISA detections, this is not
done. */
extern
int
i2c_detect
(
struct
i2c_adapter
*
adapter
,
struct
i2c_address_data
*
address_data
,
i2c_found_addr_proc
*
found_proc
);
struct
i2c_address_data
*
address_data
,
int
(
*
found_proc
)
(
struct
i2c_adapter
*
,
int
,
int
)
);
/* This macro is used to scale user-input to sensible values in almost all
...
...
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