Re: I2C development on a PC

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

 



hi,

To add to my previous mail, 

  Can someone direct me to any information about the adapter id. I mean
how is the adapter id allocated for a new adapter? How would client know
about it when it wants to register to a particular adapter??

 I looked into i2c_add_adapter(), and the id assigning process
containing idr_pre_get() & idr_get_new() function calls. The new id
creation process is complex, containing the "struct idr" and "struct
idr_layer" etc,.. why is that so? Any link where i can find information
about this?

So, after the successful id assigning process, is that adapter id
exported in some way for clients willing to attach to that specific
adapter??? This is important coz if i specify ANY_I2C_BUS, my client
might get attached to different bus, since the i2c_register_driver()
code scans through the adapter list, and keeps on calling the
driver->attach fucntion.

  Didnt find it in Documentation/i2c/ either.

cheers,
sandeep


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux