Hello,

On Wed, Sep 29, 2010 at 12:57 AM, Dev Null <[email protected]> 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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to