i2c: Allow preallocation of I2C bus numbers.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · David Brownell
I confess I don't quite follow the intent of this patch.
-
i2c_alloc_bus_number()... why not just have the platform maintainer define the numbers? (Or in the OF case, just
have the OF glue assign them.) And it's pointless to
export this, given it supports calling a non-exported routine.
Quoted 5 lines
-
i2c_add_prenumbered_adapter()... caller should just setadapter->numberitself and calli2c_add_numbered_adapter(); no need for a new routine.Both calls seem useless to me.
I can only second David's scepticism here. I fail to see the purpose of this patch. It looks to me like we already have everything in place to cover all use cases:
* If you need to declare the I2C devices before the I2C adapters are created, you have i2c_register_board_info() and i2c_add_numbered_adapter().
* If you declare the I2C adapters first, you have i2c_add_adapter() and i2c_new_device/i2c_new_probed_device().
Scott, what problem were you trying to solve?
Signature · 1 line
Jean Delvare