mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
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>
This commit is contained in:
parent
f26b0500d0
commit
a873798c2f
|
|
@ -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)
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user