From: Grygorii Strashko Date: Mon, 6 Apr 2015 12:38:39 +0000 (+0300) Subject: i2c: change input parameter to i2c_adapter for prepare/unprepare_recovery X-Git-Tag: omap-for-v4.1/fixes-rc1~146^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b2190a375d796a5ad9ec557cb51269f36b264d4;p=pandora-kernel.git i2c: change input parameter to i2c_adapter for prepare/unprepare_recovery This patch changes type of input parameter for prepare/unprepare_recovery() callbacks from struct i2c_bus_recovery_info * to struct i2c_adapter *. This allows to simplify implementation of these callbacks and avoid type conversations from i2c_bus_recovery_info to i2c_adapter. The i2c_bus_recovery_info can be simply retrieved from struct i2c_adapter which contains pointer on it. There are no users currently, so this is safe to do. Acked-by: Uwe Kleine-König Acked-by: Alexander Sverdlin Signed-off-by: Grygorii Strashko Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed