Re: I2C Driver: Attach_adapter VS Probe or Detect
Hello, On Wed, Sep 29, 2010 at 12:57 AM, Dev Null wrote: > Hello, > I have been using the I2C driver and the driver detection routine through > attach_adapter in that driver. In attach_adapter, I am calling i2c_probe > i2c_core call back function for the device detection. > There is an another way of detecting the I2C device through probe routine > and detect routine. > I have looked into i2c.h and the author has mentioned that attach_adapter > and detach_adapter routines are for legacy drivers. > Is attach_adapter and detach_adapter way of driver detection method okay to > use? IMO, the simplest way is using probe/remove in struct i2c_driver and use i2c_board_info and i2c_device_id to match it with your device. You do not have to use attach_adapter and detach_adapter. > I have been getting some issue in the SMBus through i2c-core. Do you think > this could be the source of that issue? What kind of issue ? Regards, Silesh -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: Integer Division on 32 Bit Machines
On Thu, Sep 9, 2010 at 8:21 AM, Bond wrote: > > > On Thu, Sep 9, 2010 at 8:11 AM, ptchinster wrote: >> >> What do you think? Apply what you have learned so far and come up with >> the pros and cons of being able to use negative numbers. >> > I read that book of Robert Love LKD. > I am not very impressed by the book. > The book does discuss some things which are not easy to find else where. > What I am looking for is some material where I can jump with some working > examples. > For example I wrote my Kernel Module.I also wrote a small driver for my > experiment. > Both of them were working. > I also read the Essential Linux Device Driver Development (4 chapters of > starting and last 2 where they discuss about debugging Kernel) > These books discuss the kernel things services which might be needed by the > driver code. > See in my case I do not work in a company or organization that has any thing > to do with Linux. > What I am looking at is some small exercise which I can do on my own and > after I try it I get back here. > What next do I try I am not clear with that part? > It would be better if you do not hijack other e-mail threads to post your own question. Please start a new e-mail thread to post your queries. This will help folks who go through this mailing list archive to find out answer to a specific problem. In this case, the original question was "Integer Division on 32 Bit Machines". So it would be easy to find the answer to this if one e-mail thread handled only this or may be some closely related stuff. Thanks, Silesh -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ