All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/34] nfc: st-nci: Remove useless #include "ndlc.h"
       [not found] <1450301877-10354-1-git-send-email-christophe-h.ricard@st.com>
@ 2015-12-16 21:37 ` Christophe Ricard
  2015-12-16 21:37 ` [PATCH 02/34] nfc: st-nci: remove unneeded CONFIG_OF switches Christophe Ricard
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: Christophe Ricard @ 2015-12-16 21:37 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] 7+ messages in thread

* [PATCH 02/34] nfc: st-nci: remove unneeded CONFIG_OF switches
       [not found] <1450301877-10354-1-git-send-email-christophe-h.ricard@st.com>
  2015-12-16 21:37 ` [PATCH 01/34] nfc: st-nci: Remove useless #include "ndlc.h" Christophe Ricard
@ 2015-12-16 21:37 ` Christophe Ricard
  2015-12-16 21:37 ` [PATCH 03/34] nfc: st21nfca: " Christophe Ricard
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: Christophe Ricard @ 2015-12-16 21:37 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] 7+ messages in thread

* [PATCH 03/34] nfc: st21nfca: remove unneeded CONFIG_OF switches
       [not found] <1450301877-10354-1-git-send-email-christophe-h.ricard@st.com>
  2015-12-16 21:37 ` [PATCH 01/34] nfc: st-nci: Remove useless #include "ndlc.h" Christophe Ricard
  2015-12-16 21:37 ` [PATCH 02/34] nfc: st-nci: remove unneeded CONFIG_OF switches Christophe Ricard
@ 2015-12-16 21:37 ` Christophe Ricard
  2015-12-16 21:37 ` [PATCH 04/34] nfc: nxp-nci: Remove #ifdef CONFIG_OF Christophe Ricard
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: Christophe Ricard @ 2015-12-16 21:37 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] 7+ messages in thread

* [PATCH 04/34] nfc: nxp-nci: Remove #ifdef CONFIG_OF
       [not found] <1450301877-10354-1-git-send-email-christophe-h.ricard@st.com>
                   ` (2 preceding siblings ...)
  2015-12-16 21:37 ` [PATCH 03/34] nfc: st21nfca: " Christophe Ricard
@ 2015-12-16 21:37 ` Christophe Ricard
  2015-12-16 21:37 ` [PATCH 05/34] nfc: pn544: " Christophe Ricard
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: Christophe Ricard @ 2015-12-16 21:37 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] 7+ messages in thread

* [PATCH 05/34] nfc: pn544: Remove #ifdef CONFIG_OF
       [not found] <1450301877-10354-1-git-send-email-christophe-h.ricard@st.com>
                   ` (3 preceding siblings ...)
  2015-12-16 21:37 ` [PATCH 04/34] nfc: nxp-nci: Remove #ifdef CONFIG_OF Christophe Ricard
@ 2015-12-16 21:37 ` Christophe Ricard
  2015-12-16 21:37 ` [PATCH 15/34] nfc: st21nfca: Remove useless pr_info in st21nfca_hci_i2c_disable Christophe Ricard
  2015-12-16 21:37 ` [PATCH 31/34] nfc: microread: Fix header comment Christophe Ricard
  6 siblings, 0 replies; 7+ messages in thread
From: Christophe Ricard @ 2015-12-16 21:37 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] 7+ messages in thread

* [PATCH 15/34] nfc: st21nfca: Remove useless pr_info in st21nfca_hci_i2c_disable
       [not found] <1450301877-10354-1-git-send-email-christophe-h.ricard@st.com>
                   ` (4 preceding siblings ...)
  2015-12-16 21:37 ` [PATCH 05/34] nfc: pn544: " Christophe Ricard
@ 2015-12-16 21:37 ` Christophe Ricard
  2015-12-16 21:37 ` [PATCH 31/34] nfc: microread: Fix header comment Christophe Ricard
  6 siblings, 0 replies; 7+ messages in thread
From: Christophe Ricard @ 2015-12-16 21:37 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] 7+ messages in thread

* [PATCH 31/34] nfc: microread: Fix header comment
       [not found] <1450301877-10354-1-git-send-email-christophe-h.ricard@st.com>
                   ` (5 preceding siblings ...)
  2015-12-16 21:37 ` [PATCH 15/34] nfc: st21nfca: Remove useless pr_info in st21nfca_hci_i2c_disable Christophe Ricard
@ 2015-12-16 21:37 ` Christophe Ricard
  6 siblings, 0 replies; 7+ messages in thread
From: Christophe Ricard @ 2015-12-16 21:37 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] 7+ messages in thread

end of thread, other threads:[~2015-12-16 21:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1450301877-10354-1-git-send-email-christophe-h.ricard@st.com>
2015-12-16 21:37 ` [PATCH 01/34] nfc: st-nci: Remove useless #include "ndlc.h" Christophe Ricard
2015-12-16 21:37 ` [PATCH 02/34] nfc: st-nci: remove unneeded CONFIG_OF switches Christophe Ricard
2015-12-16 21:37 ` [PATCH 03/34] nfc: st21nfca: " Christophe Ricard
2015-12-16 21:37 ` [PATCH 04/34] nfc: nxp-nci: Remove #ifdef CONFIG_OF Christophe Ricard
2015-12-16 21:37 ` [PATCH 05/34] nfc: pn544: " Christophe Ricard
2015-12-16 21:37 ` [PATCH 15/34] nfc: st21nfca: Remove useless pr_info in st21nfca_hci_i2c_disable Christophe Ricard
2015-12-16 21:37 ` [PATCH 31/34] nfc: microread: Fix header comment Christophe Ricard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.