aboutsummaryrefslogtreecommitdiffstats
path: root/bitbang_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'bitbang_spi.c')
-rw-r--r--bitbang_spi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bitbang_spi.c b/bitbang_spi.c
index 3d973c58..83c3501b 100644
--- a/bitbang_spi.c
+++ b/bitbang_spi.c
@@ -131,6 +131,13 @@ static int bitbang_spi_send_command(const struct flashctx *flash,
return 0;
}
+static int bitbang_spi_shutdown(void *data)
+{
+ /* FIXME: Run bitbang_spi_release_bus here or per command? */
+ free(data);
+ return 0;
+}
+
static const struct spi_master spi_master_bitbang = {
.features = SPI_MASTER_4BA,
.max_data_read = MAX_DATA_READ_UNLIMITED,
@@ -142,13 +149,6 @@ static const struct spi_master spi_master_bitbang = {
.write_aai = default_spi_write_aai,
};
-static int bitbang_spi_shutdown(void *data)
-{
- /* FIXME: Run bitbang_spi_release_bus here or per command? */
- free(data);
- return 0;
-}
-
int register_spi_bitbang_master(const struct bitbang_spi_master *master, void *spi_data)
{
struct spi_master mst = spi_master_bitbang;