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:
Shahar Avidar 2024-02-28 00:12:02 +02:00 committed by Greg Kroah-Hartman
parent f26b0500d0
commit a873798c2f

View File

@ -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)
/*-------------------------------------------------------------------------*/