spi driver: remove compilation warnings
spi_posix.c:141:1: warning: no previous prototype for 'bit_reversal' [-Wmissing-prototypes] => set bit_reversal() static pn532_spi.c:258:48: warning: unused parameter 'timeout' [-Wunused-parameter] => remove timeout in pn532_spi_read_spi_status() params
This commit is contained in:
parent
cd98a4ac87
commit
b0f216b3b2
2 changed files with 3 additions and 3 deletions
|
@ -137,7 +137,7 @@ spi_close(const spi_port sp)
|
|||
* @return reversed byte
|
||||
*/
|
||||
|
||||
uint8_t
|
||||
static uint8_t
|
||||
bit_reversal(const uint8_t x)
|
||||
{
|
||||
uint8_t ret = x;
|
||||
|
|
|
@ -255,7 +255,7 @@ pn532_spi_open(const nfc_context *context, const nfc_connstring connstring)
|
|||
}
|
||||
|
||||
static int
|
||||
pn532_spi_read_spi_status(nfc_device *pnd, int timeout)
|
||||
pn532_spi_read_spi_status(nfc_device *pnd)
|
||||
{
|
||||
static const uint8_t pn532_spi_statread_cmd = 0x02;
|
||||
|
||||
|
@ -320,7 +320,7 @@ pn532_spi_wait_for_data(nfc_device *pnd, int timeout)
|
|||
int timer = 0;
|
||||
|
||||
int ret;
|
||||
while ((ret = pn532_spi_read_spi_status(pnd, timeout)) != pn532_spi_ready) {
|
||||
while ((ret = pn532_spi_read_spi_status(pnd)) != pn532_spi_ready) {
|
||||
if (ret < 0) {
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue