greybus: i2c-gb: fix bad message size in gb_i2c
authorAlexandre Bailon <abailon@baylibre.com>
Wed, 14 Jan 2015 09:23:49 +0000 (10:23 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 14 Jan 2015 21:12:07 +0000 (13:12 -0800)
commite2ed07f1e6926d5b6da8bc29c1ec552ecdb7085b
treee0215579c3d32de55bd7f21693f853b371798101
parent88e70a6846dbc3cb94d3dd2bb488bc743a1f14f1
greybus: i2c-gb: fix bad message size in gb_i2c

The data_in_size variable was set to 1 for the status byte.
But now, the status byte has move to header. Then, the status byte
is "allocated" twice and cause bad message size error.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/i2c-gb.c