summaryrefslogtreecommitdiff
path: root/drivers/staging/pi433/rf69.h
diff options
context:
space:
mode:
authorPaulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>2022-01-09 00:27:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-25 18:29:04 +0300
commit6cc2d1a6536788f6334217440a2956c7e73f87f6 (patch)
tree653c9a078f12c886a61cf484d13b08a1765ff335 /drivers/staging/pi433/rf69.h
parentf0fbfdf6b0ef42f989f7dcbe912d2ce3798c494b (diff)
downloadlinux-6cc2d1a6536788f6334217440a2956c7e73f87f6.tar.xz
staging: pi433: move get version func to where all other functions are
As a convention for the pi433 driver, all routines that deals with the rf69 chip are defined in the rf69.c file. There was an exception to the rule in which the uC version verification was being done directly elsewhere. While at it, the Version Register hardcoded value was replaced with a pre-existing constant in the driver. This patch adds rf69_get_version function to rf69.c Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com> Link: https://lore.kernel.org/r/20220108212728.GA7784@mail.google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/pi433/rf69.h')
-rw-r--r--drivers/staging/pi433/rf69.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h
index b648ba5fff89..c25942f142a6 100644
--- a/drivers/staging/pi433/rf69.h
+++ b/drivers/staging/pi433/rf69.h
@@ -17,6 +17,7 @@
#define FIFO_SIZE 66 /* bytes */
#define FIFO_THRESHOLD 15 /* bytes */
+int rf69_get_version(struct spi_device *spi);
int rf69_set_mode(struct spi_device *spi, enum mode mode);
int rf69_set_data_mode(struct spi_device *spi, u8 data_mode);
int rf69_set_modulation(struct spi_device *spi, enum modulation modulation);