aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Lapuyade2013-09-02 12:35:39 +0200
committerSamuel Ortiz2013-09-25 01:35:40 +0200
commitd593751129ec26762412b2fa7afe9c9258923340 (patch)
tree134134786b834fb1278fdf6f6d245b91b0f698e0 /include
parent079797c3b7ca74a4e81496fda5d53adec9f727bf (diff)
NFC: NCI: Rename spi ndev -> nsdev and nci_dev -> ndev for consistency
An hci dev is an hdev. An nci dev is an ndev. Calling an nci spi dev an ndev is misleading since it's not the same thing. The nci dev contained in the nci spi dev is also named inconsistently. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/nfc/nci_core.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/net/nfc/nci_core.h b/include/net/nfc/nci_core.h
index 99fc1f3a392a..c08399621c8b 100644
--- a/include/net/nfc/nci_core.h
+++ b/include/net/nfc/nci_core.h
@@ -210,14 +210,14 @@ int nci_to_errno(__u8 code);
struct nci_spi_dev;
struct nci_spi_ops {
- int (*open)(struct nci_spi_dev *ndev);
- int (*close)(struct nci_spi_dev *ndev);
- void (*assert_int)(struct nci_spi_dev *ndev);
- void (*deassert_int)(struct nci_spi_dev *ndev);
+ int (*open)(struct nci_spi_dev *nsdev);
+ int (*close)(struct nci_spi_dev *nsdev);
+ void (*assert_int)(struct nci_spi_dev *nsdev);
+ void (*deassert_int)(struct nci_spi_dev *nsdev);
};
struct nci_spi_dev {
- struct nci_dev *nci_dev;
+ struct nci_dev *ndev;
struct spi_device *spi;
struct nci_spi_ops *ops;
@@ -238,20 +238,20 @@ struct nci_spi_dev *nci_spi_allocate_device(struct spi_device *spi,
u32 supported_se,
u8 acknowledge_mode,
unsigned int delay);
-void nci_spi_free_device(struct nci_spi_dev *ndev);
-int nci_spi_register_device(struct nci_spi_dev *ndev);
-void nci_spi_unregister_device(struct nci_spi_dev *ndev);
-int nci_spi_recv_frame(struct nci_spi_dev *ndev);
+void nci_spi_free_device(struct nci_spi_dev *nsdev);
+int nci_spi_register_device(struct nci_spi_dev *nsdev);
+void nci_spi_unregister_device(struct nci_spi_dev *nsdev);
+int nci_spi_recv_frame(struct nci_spi_dev *nsdev);
-static inline void nci_spi_set_drvdata(struct nci_spi_dev *ndev,
+static inline void nci_spi_set_drvdata(struct nci_spi_dev *nsdev,
void *data)
{
- ndev->driver_data = data;
+ nsdev->driver_data = data;
}
-static inline void *nci_spi_get_drvdata(struct nci_spi_dev *ndev)
+static inline void *nci_spi_get_drvdata(struct nci_spi_dev *nsdev)
{
- return ndev->driver_data;
+ return nsdev->driver_data;
}
#endif /* __NCI_CORE_H */