diff options
author | Shahar Avidar <ikobh7@gmail.com> | 2024-02-27 23:12:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-05 15:11:25 +0100 |
commit | a873798c2fde466f431a96a5983e78b95f93b613 (patch) | |
tree | 9a129727e1dca7c66052de35c8b4cdbdff788315 /drivers/staging | |
parent | staging: pi433: Remove a duplicated F_OSC define (diff) | |
download | linux-a873798c2fde466f431a96a5983e78b95f93b613.tar.xz linux-a873798c2fde466f431a96a5983e78b95f93b613.zip |
staging: pi433: Redefine F_OSC using units.h macro
Use HZ_PER_MHZ for a more robust definition.
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
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-4-ikobh7@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-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) /*-------------------------------------------------------------------------*/ |