diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2016-03-22 14:30:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-03-22 16:47:28 -0400 |
commit | 0ec306324423444d3ee0222708ef9de7f5586b93 (patch) | |
tree | 3d6ad3817d35074b12b8d92162437e03f6ce2372 /drivers/staging/greybus/spi.c | |
parent | 418f3dab841f85e24beb6e30858cafce5cf1f87c (diff) |
greybus: convert drivers to use connection->private set/get
This converts all drivers to use the gb_connection_get_data() and
gb_connection_set_data() functions to make it a bit more explicit as to
what is going on.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/spi.c')
-rw-r--r-- | drivers/staging/greybus/spi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/greybus/spi.c b/drivers/staging/greybus/spi.c index 35714533a1ac..12e8cd8b1655 100644 --- a/drivers/staging/greybus/spi.c +++ b/drivers/staging/greybus/spi.c @@ -28,7 +28,7 @@ struct gb_spi { static struct spi_master *get_master_from_spi(struct gb_spi *spi) { - return spi->connection->private; + return gb_connection_get_data(spi->connection); } static int tx_header_fit_operation(u32 tx_size, u32 count, size_t data_max) @@ -339,7 +339,7 @@ static int gb_spi_connection_init(struct gb_connection *connection) spi = spi_master_get_devdata(master); spi->connection = connection; - connection->private = master; + gb_connection_set_data(connection, master); /* get master configuration */ ret = gb_spi_get_master_config(spi); @@ -382,7 +382,7 @@ out_put_master: static void gb_spi_connection_exit(struct gb_connection *connection) { - struct spi_master *master = connection->private; + struct spi_master *master = gb_connection_get_data(connection); spi_unregister_master(master); } |