Skip to content

Commit 18e11ef

Browse files
ukleineknunojsa
authored andcommitted
iio: adc: ad4630: Drop some unused register bitfield defines
While working on that driver I noticed that the bitfield described by AD4630_AVG_FILTER_RESET is actually called "AVG_SYNC" in the reference manual. Instead of fixing that, remove that unused define and a few more that are also unused. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent 521a57f commit 18e11ef

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/iio/adc/ad4630.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,11 @@
7272
#define AD4630_SW_RESET (BIT(0) | BIT(7))
7373
/* CHIP GRADE */
7474
#define AD4630_MSK_CHIP_GRADE GENMASK(7, 3)
75-
#define AD4630_CHIP_GRADE(grade) FIELD_GET(AD4630_MSK_CHIP_GRADE, grade)
7675
/* MODES */
7776
#define AD4630_LANE_MODE_MSK GENMASK(7, 6)
7877
#define AD4630_CLK_MODE_MSK GENMASK(5, 4)
7978
#define AD4630_DATA_RATE_MODE_MSK BIT(3)
8079
#define AD4630_OUT_DATA_MODE_MSK GENMASK(2, 0)
81-
/* EXIT_CFG_MD */
82-
#define AD4630_EXIT_CFG_MODE BIT(0)
83-
/* AVG */
84-
#define AD4630_AVG_FILTER_RESET BIT(7)
8580
/* OFFSET */
8681
#define AD4630_REG_CHAN_OFFSET(ch) (AD4630_REG_OFFSET_X0_2 + 3 * (ch))
8782
/* HARDWARE_GAIN */

0 commit comments

Comments
 (0)