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 Tue, 5 May 2026 09:49:41 +0300
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:

> 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.
Tweaked this and the previous as suggested + added tag to previous.

Thanks,

J
>
> > Signed-off-by: Miao Li <limiao@kylinos.cn>
>


\
 
 \ /
  Last update: 2026-05-05 11:36    [W:0.064 / U:10.873 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog