Thread (29 messages) 29 messages, 7 authors, 2025-05-23

Re: [PATCH v8 06/11] gpio: regmap: Allow to allocate regmap-irq device

From: Andy Shevchenko <hidden>
Date: 2025-05-19 13:16:15
Also in: linux-devicetree, linux-gpio, linux-pwm, lkml

On Fri, May 09, 2025 at 11:14:40AM +0200, Mathieu Dubois-Briand wrote:
GPIO controller often have support for IRQ: allow to easily allocate
both gpio-regmap and regmap-irq in one operation.
...
-		memcpy(d->prev_status_buf, d->status_buf, array_size(d->prev_status_buf));
+		memcpy(d->prev_status_buf, d->status_buf,
+		       array_size(d->chip->num_regs, sizeof(d->prev_status_buf[0])));
Shouldn't this be fixed in the previous patch which mistakenly used
array_size(x) with one argument?

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help