stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 01/28] nfc: st-nci: Remove useless #include "ndlc.h"
       [not found] <1450910727-3287-1-git-send-email-christophe-h.ricard@st.com>
@ 2015-12-23 22:45 ` Christophe Ricard
  2015-12-24  0:54   ` Greg KH
  2015-12-23 22:45 ` [PATCH v2 02/28] nfc: st-nci: remove unneeded CONFIG_OF switches Christophe Ricard
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 8+ messages in thread
From: Christophe Ricard @ 2015-12-23 22:45 UTC (permalink / raw)
  To: sameo; +Cc: linux-nfc, christophe.ricard, christophe-h.ricard, stable

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---
 drivers/nfc/st-nci/ndlc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/nfc/st-nci/ndlc.c b/drivers/nfc/st-nci/ndlc.c
index 0884b11..50880d7 100644
--- a/drivers/nfc/st-nci/ndlc.c
+++ b/drivers/nfc/st-nci/ndlc.c
@@ -20,7 +20,6 @@
 #include <net/nfc/nci_core.h>
 
 #include "st-nci.h"
-#include "ndlc.h"
 
 #define NDLC_TIMER_T1		100
 #define NDLC_TIMER_T1_WAIT	400
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 02/28] nfc: st-nci: remove unneeded CONFIG_OF switches
       [not found] <1450910727-3287-1-git-send-email-christophe-h.ricard@st.com>
  2015-12-23 22:45 ` [PATCH v2 01/28] nfc: st-nci: Remove useless #include "ndlc.h" Christophe Ricard
@ 2015-12-23 22:45 ` Christophe Ricard
  2015-12-23 22:45 ` [PATCH v2 03/28] nfc: st21nfca: " Christophe Ricard
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Christophe Ricard @ 2015-12-23 22:45 UTC (permalink / raw)
  To: sameo; +Cc: linux-nfc, christophe.ricard, christophe-h.ricard, stable

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---
 drivers/nfc/st-nci/i2c.c | 9 ---------
 drivers/nfc/st-nci/spi.c | 9 ---------
 2 files changed, 18 deletions(-)

diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/st-nci/i2c.c
index 15e3ce2..a4b49e0 100644
--- a/drivers/nfc/st-nci/i2c.c
+++ b/drivers/nfc/st-nci/i2c.c
@@ -210,7 +210,6 @@ static struct nfc_phy_ops i2c_phy_ops = {
 	.disable = st_nci_i2c_disable,
 };
 
-#ifdef CONFIG_OF
 static int st_nci_i2c_of_request_resources(struct i2c_client *client)
 {
 	struct st_nci_i2c_phy *phy = i2c_get_clientdata(client);
@@ -248,12 +247,6 @@ static int st_nci_i2c_of_request_resources(struct i2c_client *client)
 
 	return 0;
 }
-#else
-static int st_nci_i2c_of_request_resources(struct i2c_client *client)
-{
-	return -ENODEV;
-}
-#endif
 
 static int st_nci_i2c_request_resources(struct i2c_client *client)
 {
@@ -358,7 +351,6 @@ static int st_nci_i2c_remove(struct i2c_client *client)
 	return 0;
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id of_st_nci_i2c_match[] = {
 	{ .compatible = "st,st21nfcb-i2c", },
 	{ .compatible = "st,st21nfcb_i2c", },
@@ -366,7 +358,6 @@ static const struct of_device_id of_st_nci_i2c_match[] = {
 	{}
 };
 MODULE_DEVICE_TABLE(of, of_st_nci_i2c_match);
-#endif
 
 static struct i2c_driver st_nci_i2c_driver = {
 	.driver = {
diff --git a/drivers/nfc/st-nci/spi.c b/drivers/nfc/st-nci/spi.c
index d6519bb..0ab40cb 100644
--- a/drivers/nfc/st-nci/spi.c
+++ b/drivers/nfc/st-nci/spi.c
@@ -225,7 +225,6 @@ static struct nfc_phy_ops spi_phy_ops = {
 	.disable = st_nci_spi_disable,
 };
 
-#ifdef CONFIG_OF
 static int st_nci_spi_of_request_resources(struct spi_device *dev)
 {
 	struct st_nci_spi_phy *phy = spi_get_drvdata(dev);
@@ -263,12 +262,6 @@ static int st_nci_spi_of_request_resources(struct spi_device *dev)
 
 	return 0;
 }
-#else
-static int st_nci_spi_of_request_resources(struct spi_device *dev)
-{
-	return -ENODEV;
-}
-#endif
 
 static int st_nci_spi_request_resources(struct spi_device *dev)
 {
@@ -374,13 +367,11 @@ static int st_nci_spi_remove(struct spi_device *dev)
 	return 0;
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id of_st_nci_spi_match[] = {
 	{ .compatible = "st,st21nfcb-spi", },
 	{}
 };
 MODULE_DEVICE_TABLE(of, of_st_nci_spi_match);
-#endif
 
 static struct spi_driver st_nci_spi_driver = {
 	.driver = {
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 03/28] nfc: st21nfca: remove unneeded CONFIG_OF switches
       [not found] <1450910727-3287-1-git-send-email-christophe-h.ricard@st.com>
  2015-12-23 22:45 ` [PATCH v2 01/28] nfc: st-nci: Remove useless #include "ndlc.h" Christophe Ricard
  2015-12-23 22:45 ` [PATCH v2 02/28] nfc: st-nci: remove unneeded CONFIG_OF switches Christophe Ricard
@ 2015-12-23 22:45 ` Christophe Ricard
  2015-12-23 22:45 ` [PATCH v2 04/28] nfc: nxp-nci: Remove #ifdef CONFIG_OF Christophe Ricard
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Christophe Ricard @ 2015-12-23 22:45 UTC (permalink / raw)
  To: sameo; +Cc: linux-nfc, christophe.ricard, christophe-h.ricard, stable

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---
 drivers/nfc/st21nfca/i2c.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c
index a98da33..bb0409e 100644
--- a/drivers/nfc/st21nfca/i2c.c
+++ b/drivers/nfc/st21nfca/i2c.c
@@ -509,7 +509,6 @@ static struct nfc_phy_ops i2c_phy_ops = {
 	.disable = st21nfca_hci_i2c_disable,
 };
 
-#ifdef CONFIG_OF
 static int st21nfca_hci_i2c_of_request_resources(struct i2c_client *client)
 {
 	struct st21nfca_i2c_phy *phy = i2c_get_clientdata(client);
@@ -547,12 +546,6 @@ static int st21nfca_hci_i2c_of_request_resources(struct i2c_client *client)
 
 	return 0;
 }
-#else
-static int st21nfca_hci_i2c_of_request_resources(struct i2c_client *client)
-{
-	return -ENODEV;
-}
-#endif
 
 static int st21nfca_hci_i2c_request_resources(struct i2c_client *client)
 {
@@ -670,14 +663,12 @@ static int st21nfca_hci_i2c_remove(struct i2c_client *client)
 	return 0;
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id of_st21nfca_i2c_match[] = {
 	{ .compatible = "st,st21nfca-i2c", },
 	{ .compatible = "st,st21nfca_i2c", },
 	{}
 };
 MODULE_DEVICE_TABLE(of, of_st21nfca_i2c_match);
-#endif
 
 static struct i2c_driver st21nfca_hci_i2c_driver = {
 	.driver = {
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 04/28] nfc: nxp-nci: Remove #ifdef CONFIG_OF
       [not found] <1450910727-3287-1-git-send-email-christophe-h.ricard@st.com>
                   ` (2 preceding siblings ...)
  2015-12-23 22:45 ` [PATCH v2 03/28] nfc: st21nfca: " Christophe Ricard
@ 2015-12-23 22:45 ` Christophe Ricard
  2015-12-23 22:45 ` [PATCH v2 05/28] nfc: pn544: " Christophe Ricard
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Christophe Ricard @ 2015-12-23 22:45 UTC (permalink / raw)
  To: sameo; +Cc: linux-nfc, christophe.ricard, christophe-h.ricard, stable

All of_* APIs are safe if CONFIG_OF is not define.

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---
 drivers/nfc/nxp-nci/i2c.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c
index df4333c..1a699a9 100644
--- a/drivers/nfc/nxp-nci/i2c.c
+++ b/drivers/nfc/nxp-nci/i2c.c
@@ -264,8 +264,6 @@ exit_irq_none:
 	return IRQ_NONE;
 }
 
-#ifdef CONFIG_OF
-
 static int nxp_nci_i2c_parse_devtree(struct i2c_client *client)
 {
 	struct nxp_nci_i2c_phy *phy = i2c_get_clientdata(client);
@@ -304,15 +302,6 @@ static int nxp_nci_i2c_parse_devtree(struct i2c_client *client)
 	return 0;
 }
 
-#else
-
-static int nxp_nci_i2c_parse_devtree(struct i2c_client *client)
-{
-	return -ENODEV;
-}
-
-#endif
-
 static int nxp_nci_i2c_acpi_config(struct nxp_nci_i2c_phy *phy)
 {
 	struct i2c_client *client = phy->i2c_dev;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 05/28] nfc: pn544: Remove #ifdef CONFIG_OF
       [not found] <1450910727-3287-1-git-send-email-christophe-h.ricard@st.com>
                   ` (3 preceding siblings ...)
  2015-12-23 22:45 ` [PATCH v2 04/28] nfc: nxp-nci: Remove #ifdef CONFIG_OF Christophe Ricard
@ 2015-12-23 22:45 ` Christophe Ricard
  2015-12-23 22:45 ` [PATCH v2 15/28] nfc: st21nfca: Remove useless pr_info in st21nfca_hci_i2c_disable Christophe Ricard
  2015-12-23 22:45 ` [PATCH v2 25/28] nfc: microread: Fix header comment Christophe Ricard
  6 siblings, 0 replies; 8+ messages in thread
From: Christophe Ricard @ 2015-12-23 22:45 UTC (permalink / raw)
  To: sameo; +Cc: linux-nfc, christophe.ricard, christophe-h.ricard, stable

All of_* APIs are safe if CONFIG_OF is not define.

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---
 drivers/nfc/pn544/i2c.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c
index fa75c53..534c79f 100644
--- a/drivers/nfc/pn544/i2c.c
+++ b/drivers/nfc/pn544/i2c.c
@@ -938,8 +938,6 @@ static int pn544_hci_i2c_acpi_request_resources(struct i2c_client *client)
 	return 0;
 }
 
-#ifdef CONFIG_OF
-
 static int pn544_hci_i2c_of_request_resources(struct i2c_client *client)
 {
 	struct pn544_i2c_phy *phy = i2c_get_clientdata(client);
@@ -1015,15 +1013,6 @@ err_dt:
 	return ret;
 }
 
-#else
-
-static int pn544_hci_i2c_of_request_resources(struct i2c_client *client)
-{
-	return -ENODEV;
-}
-
-#endif
-
 static int pn544_hci_i2c_probe(struct i2c_client *client,
 			       const struct i2c_device_id *id)
 {
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 15/28] nfc: st21nfca: Remove useless pr_info in st21nfca_hci_i2c_disable
       [not found] <1450910727-3287-1-git-send-email-christophe-h.ricard@st.com>
                   ` (4 preceding siblings ...)
  2015-12-23 22:45 ` [PATCH v2 05/28] nfc: pn544: " Christophe Ricard
@ 2015-12-23 22:45 ` Christophe Ricard
  2015-12-23 22:45 ` [PATCH v2 25/28] nfc: microread: Fix header comment Christophe Ricard
  6 siblings, 0 replies; 8+ messages in thread
From: Christophe Ricard @ 2015-12-23 22:45 UTC (permalink / raw)
  To: sameo; +Cc: linux-nfc, christophe.ricard, christophe-h.ricard, stable

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---
 drivers/nfc/st21nfca/i2c.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c
index d31d796..566ac77 100644
--- a/drivers/nfc/st21nfca/i2c.c
+++ b/drivers/nfc/st21nfca/i2c.c
@@ -164,7 +164,6 @@ static void st21nfca_hci_i2c_disable(void *phy_id)
 {
 	struct st21nfca_i2c_phy *phy = phy_id;
 
-	pr_info("\n");
 	gpio_set_value(phy->gpio_ena, 0);
 
 	phy->powered = 0;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 25/28] nfc: microread: Fix header comment
       [not found] <1450910727-3287-1-git-send-email-christophe-h.ricard@st.com>
                   ` (5 preceding siblings ...)
  2015-12-23 22:45 ` [PATCH v2 15/28] nfc: st21nfca: Remove useless pr_info in st21nfca_hci_i2c_disable Christophe Ricard
@ 2015-12-23 22:45 ` Christophe Ricard
  6 siblings, 0 replies; 8+ messages in thread
From: Christophe Ricard @ 2015-12-23 22:45 UTC (permalink / raw)
  To: sameo; +Cc: linux-nfc, christophe.ricard, christophe-h.ricard, stable

microread platform_data header had an NXP header.

Cc: stable@vger.kernel.org
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---
 include/linux/platform_data/microread.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/platform_data/microread.h b/include/linux/platform_data/microread.h
index cfda59b..ca13992 100644
--- a/include/linux/platform_data/microread.h
+++ b/include/linux/platform_data/microread.h
@@ -1,5 +1,5 @@
 /*
- * Driver include for the PN544 NFC chip.
+ * Driver include for the Inside Secure microread NFC Chip.
  *
  * Copyright (C) 2011 Tieto Poland
  * Copyright (C) 2012 Intel Corporation. All rights reserved.
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 01/28] nfc: st-nci: Remove useless #include "ndlc.h"
  2015-12-23 22:45 ` [PATCH v2 01/28] nfc: st-nci: Remove useless #include "ndlc.h" Christophe Ricard
@ 2015-12-24  0:54   ` Greg KH
  0 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2015-12-24  0:54 UTC (permalink / raw)
  To: Christophe Ricard; +Cc: sameo, linux-nfc, christophe-h.ricard, stable

On Wed, Dec 23, 2015 at 11:45:00PM +0100, Christophe Ricard wrote:
> Cc: stable@vger.kernel.org
> Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
> ---
>  drivers/nfc/st-nci/ndlc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/nfc/st-nci/ndlc.c b/drivers/nfc/st-nci/ndlc.c
> index 0884b11..50880d7 100644
> --- a/drivers/nfc/st-nci/ndlc.c
> +++ b/drivers/nfc/st-nci/ndlc.c
> @@ -20,7 +20,6 @@
>  #include <net/nfc/nci_core.h>
>  
>  #include "st-nci.h"
> -#include "ndlc.h"
>  
>  #define NDLC_TIMER_T1		100
>  #define NDLC_TIMER_T1_WAIT	400
> -- 
> 2.1.4

How in this world is this a -stable kernel patch?

Please go read Documentation/stable_kernel_rules.txt again...

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-12-24  0:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1450910727-3287-1-git-send-email-christophe-h.ricard@st.com>
2015-12-23 22:45 ` [PATCH v2 01/28] nfc: st-nci: Remove useless #include "ndlc.h" Christophe Ricard
2015-12-24  0:54   ` Greg KH
2015-12-23 22:45 ` [PATCH v2 02/28] nfc: st-nci: remove unneeded CONFIG_OF switches Christophe Ricard
2015-12-23 22:45 ` [PATCH v2 03/28] nfc: st21nfca: " Christophe Ricard
2015-12-23 22:45 ` [PATCH v2 04/28] nfc: nxp-nci: Remove #ifdef CONFIG_OF Christophe Ricard
2015-12-23 22:45 ` [PATCH v2 05/28] nfc: pn544: " Christophe Ricard
2015-12-23 22:45 ` [PATCH v2 15/28] nfc: st21nfca: Remove useless pr_info in st21nfca_hci_i2c_disable Christophe Ricard
2015-12-23 22:45 ` [PATCH v2 25/28] nfc: microread: Fix header comment Christophe Ricard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).