diff options
author | Shahar Avidar <ikobh7@gmail.com> | 2024-02-27 23:12:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-05 15:11:26 +0100 |
commit | d48d2aba3ee7ca1f93e9a922e8df543cfb0f5ee9 (patch) | |
tree | 469fd3395e6c8e0085b27b9111bce2f21e314f12 /drivers/staging | |
parent | staging: pi433: Remove the unused FREQUENCY define (diff) | |
download | linux-d48d2aba3ee7ca1f93e9a922e8df543cfb0f5ee9.tar.xz linux-d48d2aba3ee7ca1f93e9a922e8df543cfb0f5ee9.zip |
staging: pi433: Move FIFO_THRESHOLD define to source file
FIFO_THRESHOLD is only being used in pi433_if.c source files.
Signed-off-by: Shahar Avidar <ikobh7@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240227221204.534131-6-ikobh7@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/pi433/pi433_if.c | 1 | ||||
-rw-r--r-- | drivers/staging/pi433/rf69.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 0ec3130225db..b6c4917d515e 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -49,6 +49,7 @@ #define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */ #define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */ #define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */ +#define FIFO_THRESHOLD 15 /* bytes */ #define NUM_DIO 2 static dev_t pi433_dev; diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index e63e87fd6cce..76f0f9896a52 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -12,7 +12,6 @@ #include "rf69_registers.h" #define FIFO_SIZE 66 /* bytes */ -#define FIFO_THRESHOLD 15 /* bytes */ u8 rf69_read_reg(struct spi_device *spi, u8 addr); int rf69_get_version(struct spi_device *spi); |