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

2015-08-10 Thread Varka Bhadram

Yup...  :-)  Your name in the From (LIYONG) address is different from SOB (Yong 
Li) address.
It should be same, please fix your email-client.

On 08/10/2015 12:59 PM, LIYONG wrote:


In case of 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
---
  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;
 }

--
2.1.0




This patch is not applying.

Please use 'git format-patch' to generate the patch. And send it by 'git 
send-email'

In your case:
git commit -am -s "cc2520: set the default fifo pin value from platform 
data"
git format-patch --subject-prefix="PATCH v2 bluetooth-next" -1
git send-email 0001-


--
Varka Bhadram.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


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

2015-08-10 Thread LIYONG
In case of 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 
---
 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;
        }

--
2.1.0

  --
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


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

2015-08-10 Thread Varka Bhadram

Yup...  :-)  Your name in the From (LIYONG) address is different from SOB (Yong 
Li) address.
It should be same, please fix your email-client.

On 08/10/2015 12:59 PM, LIYONG wrote:


In case of 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 Lisdliy...@gmail.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 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;
 }

--
2.1.0




This patch is not applying.

Please use 'git format-patch' to generate the patch. And send it by 'git 
send-email'

In your case:
git commit -am -s cc2520: set the default fifo pin value from platform 
data
git format-patch --subject-prefix=PATCH v2 bluetooth-next -1
git send-email 0001-


--
Varka Bhadram.

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


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

2015-08-10 Thread LIYONG
In case of 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 sdliy...@gmail.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 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;
        }

--
2.1.0

  --
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/