diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-10-15 10:14:43 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-10-20 17:28:55 +0100 |
commit | 48959fcdca8b335afa4485e71114008c81291bf9 (patch) | |
tree | bc1751e317411cf4cf56ed41e85da3e2eef67585 /include/linux/mfd | |
parent | 3831abe135566813341cc36b1493d75f6ac460c3 (diff) | |
download | linux-stable-48959fcdca8b335afa4485e71114008c81291bf9.tar.gz linux-stable-48959fcdca8b335afa4485e71114008c81291bf9.tar.bz2 linux-stable-48959fcdca8b335afa4485e71114008c81291bf9.zip |
mfd: ti_am335x_tscadc: Use the new HZ_PER_MHZ macro
Before adding another frequency with even more zeroes, use the
HZ_PER_MHZ macro to clarify the number.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211015081506.933180-26-miquel.raynal@bootlin.com
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/ti_am335x_tscadc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mfd/ti_am335x_tscadc.h b/include/linux/mfd/ti_am335x_tscadc.h index 893c474c1f8c..a85643677bef 100644 --- a/include/linux/mfd/ti_am335x_tscadc.h +++ b/include/linux/mfd/ti_am335x_tscadc.h @@ -9,6 +9,7 @@ #define __LINUX_TI_AM335X_TSCADC_MFD_H #include <linux/mfd/core.h> +#include <linux/units.h> #define REG_RAWIRQSTATUS 0x024 #define REG_IRQSTATUS 0x028 @@ -133,7 +134,7 @@ #define SEQ_STATUS BIT(5) #define CHARGE_STEP 0x11 -#define ADC_CLK 3000000 +#define ADC_CLK (3 * HZ_PER_MHZ) #define TOTAL_STEPS 16 #define TOTAL_CHANNELS 8 #define FIFO1_THRESHOLD 19 |