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
a3422b84
Commit
a3422b84
authored
Nov 08, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I2C: remove probe_range from I2C sensor drivers, as it's not used.
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
4e894b78
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
24 deletions
+0
-24
drivers/i2c/chips/pc87360.c
drivers/i2c/chips/pc87360.c
+0
-2
drivers/i2c/chips/smsc47m1.c
drivers/i2c/chips/smsc47m1.c
+0
-2
drivers/i2c/i2c-sensor-detect.c
drivers/i2c/i2c-sensor-detect.c
+0
-9
include/linux/i2c-sensor.h
include/linux/i2c-sensor.h
+0
-11
No files found.
drivers/i2c/chips/pc87360.c
View file @
a3422b84
...
...
@@ -57,8 +57,6 @@ static struct i2c_address_data addr_data = {
.
normal_i2c_range
=
normal_i2c_range
,
.
normal_isa
=
normal_isa
,
.
normal_isa_range
=
normal_isa_range
,
.
probe
=
normal_i2c
,
/* cheat */
.
probe_range
=
normal_i2c_range
,
/* cheat */
.
ignore
=
normal_i2c
,
/* cheat */
.
ignore_range
=
normal_i2c_range
,
/* cheat */
.
forces
=
forces
,
...
...
drivers/i2c/chips/smsc47m1.c
View file @
a3422b84
...
...
@@ -46,8 +46,6 @@ static struct i2c_address_data addr_data = {
.
normal_i2c_range
=
normal_i2c_range
,
.
normal_isa
=
normal_isa
,
.
normal_isa_range
=
normal_isa_range
,
.
probe
=
normal_i2c
,
/* cheat */
.
probe_range
=
normal_i2c_range
,
/* cheat */
.
ignore
=
normal_i2c
,
/* cheat */
.
ignore_range
=
normal_i2c_range
,
/* cheat */
.
forces
=
forces
,
...
...
drivers/i2c/i2c-sensor-detect.c
View file @
a3422b84
...
...
@@ -138,15 +138,6 @@ int i2c_detect(struct i2c_adapter *adapter,
found
=
1
;
}
}
for
(
i
=
0
;
!
found
&&
(
address_data
->
probe_range
[
i
]
!=
I2C_CLIENT_END
);
i
+=
3
)
{
if
(
((
adapter_id
==
address_data
->
probe_range
[
i
])
||
((
address_data
->
probe_range
[
i
]
==
ANY_I2C_BUS
)
&&
!
is_isa
))
&&
(
addr
>=
address_data
->
probe_range
[
i
+
1
])
&&
(
addr
<=
address_data
->
probe_range
[
i
+
2
]))
{
found
=
1
;
dev_dbg
(
&
adapter
->
dev
,
"found probe_range parameter for adapter %d, addr %04x
\n
"
,
adapter_id
,
addr
);
}
}
if
(
!
found
)
continue
;
...
...
include/linux/i2c-sensor.h
View file @
a3422b84
...
...
@@ -58,12 +58,6 @@ struct i2c_force_data {
A list of pairs. The first value is a bus number (ANY_I2C_ISA_BUS for
the ISA bus, -1 for any I2C bus), the second is the address. These
addresses are also probed, as if they were in the 'normal' list.
probe_range: insmod parameter. Initialize this list with I2C_CLIENT_ISA_END
values.
A list of triples. The first value is a bus number (ANY_I2C_ISA_BUS for
the ISA bus, -1 for any I2C bus), the second and third are addresses.
These form an inclusive range of addresses that are also probed, as
if they were in the 'normal' list.
ignore: insmod parameter. Initialize this list with I2C_CLIENT_ISA_END values.
A list of pairs. The first value is a bus number (ANY_I2C_ISA_BUS for
the ISA bus, -1 for any I2C bus), the second is the I2C address. These
...
...
@@ -84,7 +78,6 @@ struct i2c_address_data {
unsigned
int
*
normal_isa
;
unsigned
int
*
normal_isa_range
;
unsigned
short
*
probe
;
unsigned
short
*
probe_range
;
unsigned
short
*
ignore
;
unsigned
short
*
ignore_range
;
struct
i2c_force_data
*
forces
;
...
...
@@ -100,9 +93,6 @@ struct i2c_address_data {
#define SENSORS_INSMOD \
I2C_CLIENT_MODULE_PARM(probe, \
"List of adapter,address pairs to scan additionally"); \
I2C_CLIENT_MODULE_PARM(probe_range, \
"List of adapter,start-addr,end-addr triples to scan " \
"additionally"); \
I2C_CLIENT_MODULE_PARM(ignore, \
"List of adapter,address pairs not to scan"); \
I2C_CLIENT_MODULE_PARM(ignore_range, \
...
...
@@ -114,7 +104,6 @@ struct i2c_address_data {
.normal_isa = normal_isa, \
.normal_isa_range = normal_isa_range, \
.probe = probe, \
.probe_range = probe_range, \
.ignore = ignore, \
.ignore_range = ignore_range, \
.forces = forces, \
...
...
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