diff options
author | Shahar Avidar <[email protected]> | 2024-02-28 00:12:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-03-05 14:11:25 +0000 |
commit | a873798c2fde466f431a96a5983e78b95f93b613 (patch) | |
tree | 9a129727e1dca7c66052de35c8b4cdbdff788315 | |
parent | f26b0500d0bb0e06b1c30b2f54750402257e8117 (diff) |
staging: pi433: Redefine F_OSC using units.h macro
Use HZ_PER_MHZ for a more robust definition.
Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Shahar Avidar <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/pi433/rf69.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index b3b8d1abd3eb..5a1c362badb6 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -8,11 +8,12 @@ #include <linux/types.h> #include <linux/spi/spi.h> +#include <linux/units.h> #include "rf69.h" #include "rf69_registers.h" -#define F_OSC 32000000 /* in Hz */ +#define F_OSC (32 * HZ_PER_MHZ) /*-------------------------------------------------------------------------*/ |