struct i2c_adapter

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

 



Ron Rindzunski wrote:
> Hi !
> trying to port my own application using i2c 2.6.1 interface version to 
> i2c 2.9.0 version i got two compile errors, both referring to changes 
> been done in struct i2c_adapter in i2c.h file:
> problem # 1:
> struct i2c_adapter {
> -    struct semaphore lock;
>       was replaced by    
> +   struct semaphore bus;
> +   struct semaphore list;
> problem # 2:
> -    int client_count;
>      has been deleted completely
> }
>  
> can you please explain to me what were those fields original intention, 
> why did you apply the changes, and most important - what should i do in 
> order to overcome the problems resulting from those changes.
>  
> thanks
> Ron
> rindjon at yahoo.com <mailto:rindjon at yahoo.com>  
>

they have to do with locking.
the i2c and sensors CHANGES documents provide some background, you
can see more information from the cvs logs.
The best way to fix it is to diff a similar driver from 2.6.1 to 2.9.0 and
that will show you what changes you have to make.
If you have specific questions  let us know.

mds



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux