lkml.org 
[lkml]   [2026]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 3/3] iio: light: stk3310: Use sizeof() for regmap_bulk_read/write count parameter
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@kylinos.cn>

--
With Best Regards,
Andy Shevchenko



\
 
 \ /
  Last update: 2026-05-05 08:50    [W:0.100 / U:18.797 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog