commit | 989312782ec1507959b94b2f3f6c1138d138e34a | [log] [tgz] |
---|---|---|
author | Grant Likely <grant.likely@secretlab.ca> | Mon Jun 27 12:49:07 2011 -0600 |
committer | Grant Likely <grant.likely@secretlab.ca> | Thu Jul 21 15:41:42 2011 -0600 |
tree | bdd5de62b4930c6cbdffa3de74d670c6f97fd54c | |
parent | 2128742129b86c5c2e13cfea29bbab7018075c09 [diff] |
i2c: Allow i2c_add_numbered_adapter() to assign a bus id. 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 <grant.likely@secretlab.ca>