]> git.baikalelectronics.ru Git - kernel.git/commit
cc2520: Do not store platform_data in spi_device
authorBrad Campbell <bradjc5@gmail.com>
Tue, 17 Mar 2015 20:25:45 +0000 (16:25 -0400)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 18 Mar 2015 16:50:25 +0000 (17:50 +0100)
commit5165127fe45bafa5af0e6083c9073a58225ee9d4
tree78bc65cba11a0cd6c4e8200243685eb794f116bc
parent018c35326548326dcd7133d7e8bc34bdc2bf181a
cc2520: Do not store platform_data in spi_device

Storing the `platform_data` struct inside of the SPI struct when using
the device tree allows for a later function to edit the content of that
struct. This patch refactors the `cc2520_get_platformat_data` function
to accept a pointer to a `cc2520_platform_data` struct and populates
the fields inside of it.

This change mirrors commit 916cbb86bc44295f24d529510dc8bc71a46901d3
("at86rf230: copy pdata to driver allocated space").

Signed-off-by: Brad Campbell <bradjc5@gmail.com>
Acked-by: Varka Bhadram <varkabhadram@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/cc2520.c