Skip to contentSkip to conversation

cc2520: set the default fifo pin value from platform data

PATCH In review [email protected] 3 participants 3 messages Aug 11, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cc2520: set the default fifo pin value from platform data

From: Yong Li <[email protected]>

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

---
 drivers/net/ieee802154/cc2520.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ieee802154/cc2520.c +1 -0
index 613dae5..c5b54a1 100644
@@ -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;
 	}
 
Signature · 1 line
2.1.0
Acked-by on v2 1/1
#1 lore raw
Quoted 6 lines · On 08/11/2015 08:13 AM, [email protected] wrote:

From: Yong Li <[email protected]>

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

Quoted 16 lines
---
  drivers/net/ieee802154/cc2520.c | 1 +
  1 file changed, 1 insertion(+)
drivers/net/ieee802154/cc2520.c +1 -0
index 613dae5..c5b54a1 100644
@@ -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;
  	}
 
Signature · 1 line
Varka Bhadram.
#2 lore raw
In reply to [email protected]

Hi Yong,

Quoted 7 lines

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

---
drivers/net/ieee802154/cc2520.c | 1 +

1 file changed, 1 insertion(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel