Skip to contentSkip to conversation

example of using i2c chip inside 2.6 kernel

DISCUSSION Kumar Gala 3 participants 4 messages May 19, 2005

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

I was hoping someone could point me to an example of using an I2C chip driver inside the kernel (if such a thing exists).

thanks

- kumar

#1 lore raw
Quoted 2 lines · Kumar Gala

I was hoping someone could point me to an example of using an I2C chip driver inside the kernel (if such a thing exists).

drivers/i2c/chips/* ?

greg k-h

author
#2 lore raw
In reply to Kumar Gala

Sorry,

I may not have been clear. Was wanting to know if any other piece of code in the kernel used one of the drivers that existed in drivers/i2c/chips/*

- kumar

Quoted 8 lines · Greg KH
Quoted 1 line · Kumar Gala

I was hoping someone could point me to an example of using an I2C

chip

Quoted 1 line

driver inside the kernel (if such a thing exists).

drivers/i2c/chips/* ?

greg k-h

#3 lore raw
In reply to Kumar Gala

don't know what you are trying to do, but i2c-dev.c is an example of doing smbus/i2c transactions from within the kernel

Quoted 19 lines · Kumar Gala

Sorry,

I may not have been clear. Was wanting to know if any other piece of code in the kernel used one of the drivers that existed in drivers/i2c/chips/*

- kumar

Quoted 7 lines · Greg KH
Quoted 2 lines · Kumar Gala

I was hoping someone could point me to an example of using an I2C chip driver inside the kernel (if such a thing exists).

drivers/i2c/chips/* ?

greg k-h