Skip to content

Commit 54bfd90

Browse files
geertuYuryNorov
authored andcommitted
iio: dac: Convert to common field_prep() helper
Drop the driver-specific field_prep() macro, in favor of the globally available variant from <linux/bitfield.h>. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
1 parent 2ef26ba commit 54bfd90

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/iio/dac/ad3530r.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@
5353
#define AD3530R_MAX_CHANNELS 8
5454
#define AD3531R_MAX_CHANNELS 4
5555

56-
/* Non-constant mask variant of FIELD_PREP() */
57-
#undef field_prep
58-
#define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
59-
6056
enum ad3530r_mode {
6157
AD3530R_NORMAL_OP,
6258
AD3530R_POWERDOWN_1K,

0 commit comments

Comments
 (0)