> + val = tps23881_set_val(ret, chan, 0, BIT(chan % 4), BIT(chan % 4)); > + val = tps23881_set_val(val, chan, 0, BIT(chan % 4), > + BIT(chan % 4)); > + val = tps23881_set_val(ret, chan, 4, BIT(chan % 4), BIT(chan % 4)); > + val = tps23881_set_val(val, chan, 4, BIT(chan % 4), > + BIT(chan % 4)); > + val = tps23881_calc_val(ret, chan, 0, BIT(chan % 4)); > + val = tps23881_calc_val(ret, chan, 0, BIT(chan % 4)); > + val = tps23881_calc_val(ret, chan, 0, BIT(chan % 4)); > + val = tps23881_calc_val(ret, chan, 4, BIT(chan % 4)); > + val = tps23881_calc_val(ret, chan, 0, BIT(chan % 4)); > + val = tps23881_calc_val(ret, chan, 4, BIT(chan % 4)); It looks like all the callers of this helper pass BIT(chan % 4) as the last parameter. Maybe move that into the helper as well? Andrew