Skip to contentSkip to conversation

Accessing i2c subsystem from within a kernel module

DISCUSSION Luis Correia 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

This question may or may not be related to lm_sensors, but you guys are the I2C master around here.

I have a small embedded hardware (PcEngines) that I whish to include a LCD display to use with lcd4linux.

For that I'm adapting a ppdev emulator driver, but now I need to know if I can (and how) access the /dev/i2c-* interface from within a kernel driver itself.

This is probably a very dumb question....

Thanks!

Luis Correia
Bering-uClibc Team Member

#1 lore raw

you don't use the /dev/i2c* interface, you use the exported functions in i2c-core.c, as documented in doc/writing-clients.

Quoted 21 lines · Luis Correia

Hi!

This question may or may not be related to lm_sensors, but you guys are the I2C master around here.

I have a small embedded hardware (PcEngines) that I whish to include a LCD display to use with lcd4linux.

For that I'm adapting a ppdev emulator driver, but now I need to know if I can (and how) access the /dev/i2c-* interface from within a kernel driver itself.

This is probably a very dumb question....

Thanks!

Luis Correia
Bering-uClibc Team Member