Re: [PATCH v2 bluetooth-next] cc2520: set the default fifo pin value from platform data

From: Varka Bhadram
Date: Mon Aug 10 2015 - 23:18:54 EST

On 08/11/2015 08:13 AM, sdliyong@xxxxxxxxx wrote:
From: Yong Li <sdliyong@xxxxxxxxx>

When the device tree support is disabled, the fifo_pin is uninitialized,
this patch will set the fifo_pin value based on platform data

Signed-off-by: Yong Li <sdliyong@xxxxxxxxx>

Acked-by: Varka Bhadram <varkabhadram@xxxxxxxxx>

drivers/net/ieee802154/cc2520.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 613dae5..c5b54a1 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -833,6 +833,7 @@ static int cc2520_get_platform_data(struct spi_device *spi,
if (!spi_pdata)
return -ENOENT;
*pdata = *spi_pdata;
+ priv->fifo_pin = pdata->fifo;
return 0;

Varka Bhadram.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at