You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/01/25 16:26:58 UTC
[incubator-nuttx] 05/12: include: nuttx: contactless: fix nxstyle
errors
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit cb92444802fdc0198c7eb9d35ab5109ceef6039e
Author: Alin Jerpelea <al...@sony.com>
AuthorDate: Mon Jan 25 13:14:59 2021 +0100
include: nuttx: contactless: fix nxstyle errors
Fix nxstyle errors for headers
Signed-off-by: Alin Jerpelea <al...@sony.com>
---
include/nuttx/contactless/ioctl.h | 3 +--
include/nuttx/contactless/mfrc522.h | 5 +++--
include/nuttx/contactless/pn532.h | 12 ++++++------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/include/nuttx/contactless/ioctl.h b/include/nuttx/contactless/ioctl.h
index 959f698..f717617 100644
--- a/include/nuttx/contactless/ioctl.h
+++ b/include/nuttx/contactless/ioctl.h
@@ -104,7 +104,7 @@ struct mifare_tag_data_s
};
/****************************************************************************
- * Public Functions
+ * Public Functions Definitions
****************************************************************************/
#ifdef __cplusplus
@@ -115,7 +115,6 @@ extern "C"
#define EXTERN extern
#endif
-
#undef EXTERN
#ifdef __cplusplus
}
diff --git a/include/nuttx/contactless/mfrc522.h b/include/nuttx/contactless/mfrc522.h
index dc590be..563b335 100644
--- a/include/nuttx/contactless/mfrc522.h
+++ b/include/nuttx/contactless/mfrc522.h
@@ -68,7 +68,7 @@ enum mfrc522_state_e
struct mfrc522_dev_s;
/****************************************************************************
- * Public Functions
+ * Public Functions Definitions
****************************************************************************/
#ifdef __cplusplus
@@ -87,7 +87,8 @@ extern "C"
*
* Input Parameters:
* devpath - The full path to the driver to register. E.g., "/dev/rfid0"
- * spi - An instance of the SPI interface to use to communicate with MFRC522
+ * spi - An instance of the SPI interface to use to communicate with
+ * MFRC522
* config - Device persistent board data
*
* Returned Value:
diff --git a/include/nuttx/contactless/pn532.h b/include/nuttx/contactless/pn532.h
index 145ee72..62103f1 100644
--- a/include/nuttx/contactless/pn532.h
+++ b/include/nuttx/contactless/pn532.h
@@ -75,7 +75,7 @@ struct pn532_config_s
/* External CS, if NULL then SPIDEV_WIRELESS(n) CS is used */
int (*select)(struct pn532_dev_s *dev, bool sel);
- int (*irqattach)(void* dev, xcpt_t isr);
+ int (*irqattach)(void *dev, xcpt_t isr);
};
enum PN_SAM_MODE
@@ -97,9 +97,8 @@ enum PN_RF_CONFIG_ITEM
{
PN_RF_CONFIG_RF_FIELD = 0x01,
PN_RF_CONFIG_VARIOUS_TIMINGS = 0x02,
-
- PN_RF_CONFIG_ITEM_ANALOG_106A = 0x0A,
- PN_RF_CONFIG_ITEM_ANALOG_212 = 0x0B,
+ PN_RF_CONFIG_ITEM_ANALOG_106A = 0x0a,
+ PN_RF_CONFIG_ITEM_ANALOG_212 = 0x0b,
};
struct pn_rf_config_s
@@ -116,7 +115,7 @@ struct pn_mifare_tag_data_s
};
/****************************************************************************
- * Public Functions
+ * Public Functions Definitions
****************************************************************************/
#ifdef __cplusplus
@@ -135,7 +134,8 @@ extern "C"
*
* Input Parameters:
* devpath - The full path to the driver to register. E.g., "/dev/nfc0"
- * spi - An instance of the SPI interface to use to communicate with PN532
+ * spi - An instance of the SPI interface to use to communicate with
+ * PN532
* config - Device persistent board data
*
* Returned Value: