Ensure rf69.c directly includes rf69_enum.h. Move rf69_registers.h from header to the relevant source file. Signed-off-by: Shahar Avidar <ikobh7@xxxxxxxxx> --- drivers/staging/pi433/pi433_if.c | 1 + drivers/staging/pi433/rf69.c | 1 + drivers/staging/pi433/rf69.h | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 81de98c0245a..0c12b31c4642 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -45,6 +45,7 @@ #include "pi433_if.h" #include "rf69.h" +#include "rf69_registers.h" #define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */ #define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */ diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 5a1c362badb6..bf802f097310 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -11,6 +11,7 @@ #include <linux/units.h> #include "rf69.h" +#include "rf69_enum.h" #include "rf69_registers.h" #define F_OSC (32 * HZ_PER_MHZ) diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 76f0f9896a52..dd6fa8af9b9c 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -9,7 +9,6 @@ #define RF69_H #include "rf69_enum.h" -#include "rf69_registers.h" #define FIFO_SIZE 66 /* bytes */ -- 2.34.1