Commit 27473f4a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

I2C: fix up some out of date Documentation

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 5240bcbf
...@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment