[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BLU168-W96900E039F7CBF326825DCD6750@phx.gbl>
Date: Wed, 5 Aug 2015 15:39:46 +0800
From: LIYONG <sdliyong@...il.com>
To: "varkabhadram@...il.com" <varkabhadram@...il.com>,
"alex.aring@...il.com" <alex.aring@...il.com>,
"linux-wpan@...r.kernel.org" <linux-wpan@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: YONG LI <sdliyong@...il.com>
Subject: [PATCH] cc2520: set the default fifo pin value from platform data
Without the device tree support, the fifo_pin is uninitialized, this
Patch will set the fifo_pin value based on platform data
Signed-off-by: Yong Li <sdliyong@...il.com>
---
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 b6fc295..cd1e7ac 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;
}
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists