Function rf69_get_payload_length is unused and should be removed. Signed-off-by: Marcin Ciupak <marcin.s.ciupak@xxxxxxxxx> --- drivers/staging/pi433/rf69.c | 5 ----- drivers/staging/pi433/rf69.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 043139730382..507092c44f2e 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -724,11 +724,6 @@ int rf69_set_payload_length(struct spi_device *spi, u8 payloadLength) return rf69_write_reg(spi, REG_PAYLOAD_LENGTH, payloadLength); } -u8 rf69_get_payload_length(struct spi_device *spi) -{ - return (u8)rf69_read_reg(spi, REG_PAYLOAD_LENGTH); -} - int rf69_set_node_address(struct spi_device *spi, u8 nodeAddress) { return rf69_write_reg(spi, REG_NODEADRS, nodeAddress); diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 20af63927861..e5439ad5d141 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -64,7 +64,6 @@ int rf69_enable_crc(struct spi_device *spi); int rf69_disable_crc(struct spi_device *spi); int rf69_set_adressFiltering(struct spi_device *spi, enum addressFiltering addressFiltering); int rf69_set_payload_length(struct spi_device *spi, u8 payloadLength); -u8 rf69_get_payload_length(struct spi_device *spi); int rf69_set_node_address(struct spi_device *spi, u8 nodeAddress); int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcastAddress); int rf69_set_tx_start_condition(struct spi_device *spi, enum txStartCondition txStartCondition); -- 2.15.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel