On Fri, Jul 6, 2018 at 7:08 PM, Akinobu Mita <akinobu.mita@xxxxxxxxx> wrote: > 2018年7月5日(木) 7:06 Andy Shevchenko <andy.shevchenko@xxxxxxxxx>: > Sounds good. I'll use clamp_val() instead of clamp_t(). > > n = clamp_val(ilog2(n), 0, ADXL345_BW_RATE); Yup! But put it directly to the call instead of min_t(). No need to assign n again (and it would mislead the n meanning). -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html