Looking for help writing an i2c client for i2c-core

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

In my i2c searches I stumbled upon this list.  I hope this message is
appropriate here.

I am trying to write an i2c client driver for the i2c core, using the Linux
Driver Model (new style driver).
I am looking for a list of steps I need to take to accomplish this.

I have been looking for a list something like this:

Load this i2c-core structure with this information.
Call this i2c-core function to register your driver.
Call this i2c-core function to connect to the adapter or bus or algorithm
(don?t know which)
Write a probe function that does this.
Write a remove function that does this.
Call this i2c-core function to write raw i2c data (not SMBus) to your device
Call this i2c-core function to read raw i2c data from your device.
Call this i2c-core function to disconnect from the adapter or bus or
algorithm

Or whatever the actual steps should be.

I have started writing a driver and have used i2c_add_driver() to register
my driver with i2c_core.
Now what?  Probe, attach, send, remove, ??  Is there a resource available
that simply lays out these facts?  I think a resource like that would be
very useful to someone trying to develop a client driver for the i2c-core
using the Linux Driver Model.


Thank you for your time,
Brian Tompson


--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux