From: Geert Uytterhoeven Date: Thu, 6 Nov 2025 13:34:06 +0000 (+0100) Subject: iio: dac: Convert to common field_prep() helper X-Git-Tag: v6.19-rc1~87^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54bfd90ca3b41567cbfdac2f633ae329eb3a665a;p=thirdparty%2Flinux.git iio: dac: Convert to common field_prep() helper Drop the driver-specific field_prep() macro, in favor of the globally available variant from . Signed-off-by: Geert Uytterhoeven Acked-by: Jonathan Cameron Signed-off-by: Yury Norov (NVIDIA) --- diff --git a/drivers/iio/dac/ad3530r.c b/drivers/iio/dac/ad3530r.c index 5684d11137f29..b97b46090d808 100644 --- a/drivers/iio/dac/ad3530r.c +++ b/drivers/iio/dac/ad3530r.c @@ -53,10 +53,6 @@ #define AD3530R_MAX_CHANNELS 8 #define AD3531R_MAX_CHANNELS 4 -/* Non-constant mask variant of FIELD_PREP() */ -#undef field_prep -#define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask)) - enum ad3530r_mode { AD3530R_NORMAL_OP, AD3530R_POWERDOWN_1K,