Skip to content

Commit 48959fc

Browse files
miquelraynalLee Jones
authored andcommitted
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
1 parent 3831abe commit 48959fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/linux/mfd/ti_am335x_tscadc.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#define __LINUX_TI_AM335X_TSCADC_MFD_H
1010

1111
#include <linux/mfd/core.h>
12+
#include <linux/units.h>
1213

1314
#define REG_RAWIRQSTATUS 0x024
1415
#define REG_IRQSTATUS 0x028
@@ -133,7 +134,7 @@
133134
#define SEQ_STATUS BIT(5)
134135
#define CHARGE_STEP 0x11
135136

136-
#define ADC_CLK 3000000
137+
#define ADC_CLK (3 * HZ_PER_MHZ)
137138
#define TOTAL_STEPS 16
138139
#define TOTAL_CHANNELS 8
139140
#define FIFO1_THRESHOLD 19

0 commit comments

Comments
 (0)