]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: spi: Restructure spi.c to share it with other bundle drivers
authorViresh Kumar <viresh.kumar@linaro.org>
Sat, 14 May 2016 18:12:19 +0000 (23:42 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 14 May 2016 21:18:32 +0000 (23:18 +0200)
commit4c412921c78732f8f803a5906c97746ede5cf77c
tree34a66afaf78d53f9cf5b6bb945bd8474f747d0a1
parentdc0754088e53e42fee1f880bc0c2002f624fe26f
greybus: spi: Restructure spi.c to share it with other bundle drivers

This patch restructures spi.c as spilib core, so that the same logic can
be reused for SPI connections implemented as part of different bundle
types. This is required for Firmware Management Bundle.

Note that the 'struct gb_protocol' and its callback aren't moved to
a separate file in this commit to make its reviews easier. That will be
done by a following patch.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/Makefile
drivers/staging/greybus/spilib.c [moved from drivers/staging/greybus/spi.c with 88% similarity]
drivers/staging/greybus/spilib.h [new file with mode: 0644]