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
27473f4a
Commit
27473f4a
authored
Nov 11, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I2C: fix up some out of date Documentation
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
5240bcbf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Documentation/i2c/dev-interface
Documentation/i2c/dev-interface
+2
-2
No files found.
Documentation/i2c/dev-interface
View file @
27473f4a
...
@@ -3,7 +3,7 @@ possible to access all devices on an adapter from userspace, through
...
@@ -3,7 +3,7 @@ possible to access all devices on an adapter from userspace, through
the /dev interface. You need to load module i2c-dev for this.
the /dev interface. You need to load module i2c-dev for this.
Each registered i2c adapter gets a number, counting from 0. You can
Each registered i2c adapter gets a number, counting from 0. You can
examine /
proc/bus/i2c
to see what number corresponds to which adapter.
examine /
sys/class/i2c-dev/
to see what number corresponds to which adapter.
I2C device files are character device files with major device number 89
I2C device files are character device files with major device number 89
and a minor device number corresponding to the number assigned as
and a minor device number corresponding to the number assigned as
explained above. They should be called "i2c-%d" (i2c-0, i2c-1, ...,
explained above. They should be called "i2c-%d" (i2c-0, i2c-1, ...,
...
@@ -19,7 +19,7 @@ Yes, I know, you should never include kernel header files, but until glibc
...
@@ -19,7 +19,7 @@ Yes, I know, you should never include kernel header files, but until glibc
knows about i2c, there is not much choice.
knows about i2c, there is not much choice.
Now, you have to decide which adapter you want to access. You should
Now, you have to decide which adapter you want to access. You should
inspect /
proc/bus/i2c
to decide this. Adapter numbers are assigned
inspect /
sys/class/i2c-dev/
to decide this. Adapter numbers are assigned
somewhat dynamically, so you can not even assume /dev/i2c-0 is the
somewhat dynamically, so you can not even assume /dev/i2c-0 is the
first adapter.
first 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