diff options
author | Marcin Ciupak <marcin.s.ciupak@gmail.com> | 2017-12-21 21:39:12 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-08 16:30:47 +0100 |
commit | 109fb18fccaa2aac4d005e402066f479f6a15a6b (patch) | |
tree | 0594cc1179941a1f978a0af01bf7c007c89ba681 /drivers | |
parent | 3c464ca5b86326cf9be6fa5025ba41eac8a75615 (diff) |
staging: pi433: remove unused rf69_set_sync_tolerance function
Function rf69_set_sync_tolerance is unused and should be removed.
Signed-off-by: Marcin Ciupak <marcin.s.ciupak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/pi433/rf69.c | 12 | ||||
-rw-r--r-- | drivers/staging/pi433/rf69.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 8bc09e10a582..7a64ef065a2e 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -588,18 +588,6 @@ int rf69_set_sync_size(struct spi_device *spi, u8 syncSize) return rf69_read_mod_write(spi, REG_SYNC_CONFIG, MASK_SYNC_CONFIG_SYNC_SIZE, (syncSize << 3)); } -int rf69_set_sync_tolerance(struct spi_device *spi, u8 syncTolerance) -{ - // check input value - if (syncTolerance > 0x07) { - dev_dbg(&spi->dev, "set: illegal input param"); - return -EINVAL; - } - - // write value - return rf69_read_mod_write(spi, REG_SYNC_CONFIG, MASK_SYNC_CONFIG_SYNC_SIZE, syncTolerance); -} - int rf69_set_sync_values(struct spi_device *spi, u8 syncValues[8]) { int retval = 0; diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index f8c015ab3ff3..d3b0f576b5f4 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -50,7 +50,6 @@ int rf69_enable_sync(struct spi_device *spi); int rf69_disable_sync(struct spi_device *spi); int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifo_fill_condition fifo_fill_condition); int rf69_set_sync_size(struct spi_device *spi, u8 sync_size); -int rf69_set_sync_tolerance(struct spi_device *spi, u8 syncTolerance); int rf69_set_sync_values(struct spi_device *spi, u8 syncValues[8]); int rf69_set_packet_format(struct spi_device *spi, enum packetFormat packetFormat); int rf69_enable_crc(struct spi_device *spi); |