Thread (13 messages) read the whole thread 13 messages, 6 authors, 2020-01-10

Re: [PATCH V2 2/2] drivers: input: keyboard

From: Andy Shevchenko <hidden>
Date: 2020-01-10 07:37:01
Also in: linux-devicetree, linux-input, linux-mediatek, lkml

On Fri, Jan 10, 2020 at 3:34 AM Dmitry Torokhov
[off-list ref] wrote:
On Wed, Jan 08, 2020 at 02:29:23PM +0800, fengping yu wrote:
quoted
From: "fengping.yu" <redacted>
...
quoted
+static void kpd_get_keymap_state(void __iomem *kp_base, u16 state[])
+{
+     state[0] = readw(kp_base + KP_MEM1);
+     state[1] = readw(kp_base + KP_MEM2);
+     state[2] = readw(kp_base + KP_MEM3);
+     state[3] = readw(kp_base + KP_MEM4);
+     state[4] = readw(kp_base + KP_MEM5);
Please use memcpy_formio() here.
Actually it's not an equivalent and may have side effects.
I already told somewhere that we lack of
mem*_*io{32,16,8}() implementation.

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help