Re: [PATCH 3/9] I2C: i2c-ocores: Can add I2C devices to the bus

From: Peter Korsgaard
Date: Fri Jun 05 2009 - 10:40:31 EST


>>>>> "Richard" == Richard RÃjfors <richard.rojfors.ext@xxxxxxxxxxxxxxx> writes:

Richard> There is sometimes a need for the ocores driver to add
Richard> devices to the bus when installed.

Richard> i2c_register_board_info can not always be used, because the
Richard> I2C devices are not known at an early state, they could for
Richard> instance be connected on a I2C bus on a PCI device which has
Richard> the Open Cores IP.

Richard> i2c_new_device can not be used in all cases either since the
Richard> resulting bus nummer might be unknown.

Richard> The solution is the pass a list of I2C devices in the
Richard> platform data to the Open Cores driver. This is useful for
Richard> MFD drivers.

Richard> Signed-off-by: Richard RÃjfors <richard.rojfors.ext@xxxxxxxxxxxxxxx>

Acked-by: Peter Korsgaard <jacmet@xxxxxxxxxx>

--
Bye, Peter Korsgaard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/