staging: typec: fusb302: reset i2c_busy state in error
authorRui Miguel Silva <rmfrfs@gmail.com>
Fri, 12 May 2017 20:16:14 +0000 (21:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 May 2017 12:23:31 +0000 (14:23 +0200)
commitf0d39a179b9cd38c739acfc4f92720a0c79e1d66
tree0f4e32d88a34a3a0d80540fddd6bd975d5f11b9c
parentca6e8cdbe1865caf7b05483e1a242e72d9bc919f
staging: typec: fusb302: reset i2c_busy state in error

Fix reset of i2c_busy flag if an error occurs during the i2c block read.

Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Acked-by: Yueyao Zhu <yueyao.zhu@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/typec/fusb302/fusb302.c