On 12/21/2010 12:53 AM, [email protected] wrote:
+static int ak8974_detect(struct i2c_client *client,
+                       struct i2c_board_info *info)
First, I think you need to define address_list in i2c_driver.
Otherwise, i2c core will not do auto detection if address_list is not
defined.
And we provide i2c_board_info on Medfield to create i2c_device, if
both auto detection and static i2c_board_info are provided, i2c core
will use static i2c_board_info to create device.
I am not sure why we need auto detection for ak8974?
1. For the name, addr and the others will pass from board file, so that
there is not necessary to define address_list.
2. We want to add ami304 support, and the device name in SFI table is
called "ami304".
     Add detection capability will help to share the same driver source.

we don't want to run detection though; that takes a lot of time.

Instead, all our devices should be coming from the SFI table, which tells you exactly where the device
is on the bus, so no need for detection at all!


_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to