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
66aa68ba
Commit
66aa68ba
authored
Sep 22, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] I2C: remove the isa address check alltogether.
parent
0873a5d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
drivers/i2c/i2c-sensor.c
drivers/i2c/i2c-sensor.c
+1
-4
No files found.
drivers/i2c/i2c-sensor.c
View file @
66aa68ba
...
@@ -50,10 +50,7 @@ int i2c_detect(struct i2c_adapter *adapter,
...
@@ -50,10 +50,7 @@ int i2c_detect(struct i2c_adapter *adapter,
return
-
1
;
return
-
1
;
for
(
addr
=
0x00
;
addr
<=
(
is_isa
?
0xffff
:
0x7f
);
addr
++
)
{
for
(
addr
=
0x00
;
addr
<=
(
is_isa
?
0xffff
:
0x7f
);
addr
++
)
{
void
*
region_used
=
request_region
(
addr
,
1
,
"foo"
);
if
(
!
is_isa
&&
i2c_check_addr
(
adapter
,
addr
))
release_region
(
addr
,
1
);
if
((
is_isa
&&
(
region_used
==
NULL
))
||
(
!
is_isa
&&
i2c_check_addr
(
adapter
,
addr
)))
continue
;
continue
;
/* If it is in one of the force entries, we don't do any
/* If it is in one of the force entries, we don't do any
...
...
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