mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
Currently, if an i2c bus driver supports both static and dynamic bus ids, it needs to choose between calling i2c_add_numbered_adapter() and i2c_add_adapter(). This patch makes i2c_add_numbered_adapter() redirect to i2c_add_adapter() if the requested bus id is -1. Signed-off-by: Grant Likely <[email protected]> Signed-off-by: Jean Delvare <[email protected]>