[PATCH 6.12 196/218] iio: dac: ad3552r: extract common code (no changes in behavior intended)