Re: [PATCH v4 3/3] iio: light: stk3310: Use sizeof() for regmap_bulk_read/write count parameter

From: Andy Shevchenko

Date: Tue May 05 2026 - 02:49:59 EST


On Mon, May 04, 2026 at 11:04:08AM +0800, Miao Li wrote:

> Convert the hardcoded count parameter to sizeof(buf) for all
> regmap_bulk_write() and regmap_bulk_read() calls in this driver
> to improve code maintainability. For details, see [1].

> [1] https://lore.kernel.org/all/20260428192213.7c5c80e5@jic23-huawei/
>

Make these two lines a formal Link tag,

Link: $URL [1]

Perhaps even Suggested-by tag is also good to add.

> Signed-off-by: Miao Li <limiao@xxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko