Hi folks, > > 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. > > 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. This probably won't help. These members are used by i2c-core only, other drivers should NOT use them. If Ron's driver broke, I suspect it is using them, but really shouldn't. -- Jean Delvare