Re: [PATCH v2 1/1] iio: common: scmi_sensors: Get rid of const_ilog2()
From: Jonathan Cameron
Date: Sun Nov 09 2025 - 09:59:31 EST
On Mon, 3 Nov 2025 09:29:11 +0100
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> Fisrt of all, const_ilog2() was a workaround of some sparse issue,
> which was never appeared in the C functions. Second, the calls here
> are done against constants and work with a bit of luck. Replace
> this altogether by a pre-calculated simple integer constant.
> Amend a comment to give a hint where it comes from.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Applied.
thanks,
J