From: Grant Likely Date: Mon, 25 Jul 2011 15:49:43 +0000 (+0200) Subject: i2c: Allow i2c_add_numbered_adapter() to assign a bus id X-Git-Tag: v3.1-rc1~250^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=488bf314bf219c66922305a1a320950efa86662f;p=pandora-kernel.git 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 Signed-off-by: Jean Delvare --- Reading git-diff-tree failed