Commit fd7bba68 authored by Ben Dooks (Codethink)'s avatar Ben Dooks (Codethink) Committed by Dmitry Torokhov

Input: apbps2 - add __iomem to register struct

Add __iomem to the apbps2_priv.regs field to make the numerous
warnings about differing address spaces go away. Fixes warnings
such as:

drivers/input/serio/apbps2.c:65:26: warning: incorrect type in argument 1 (different address spaces)
drivers/input/serio/apbps2.c:65:26:    expected void const volatile [noderef] <asn:2> *addr
drivers/input/serio/apbps2.c:65:26:    got unsigned int [noderef] *
drivers/input/serio/apbps2.c:65:26: warning: incorrect type in argument 1 (different address spaces)
drivers/input/serio/apbps2.c:65:26:    expected void const volatile [noderef] <asn:2> *addr
drivers/input/serio/apbps2.c:65:26:    got unsigned int [noderef] *
drivers/input/serio/apbps2.c:65:26: warning: incorrect type in argument 1 (different address spaces)
drivers/input/serio/apbps2.c:65:26:    expected void const volatile [noderef] <asn:2> *addr
drivers/input/serio/apbps2.c:65:26:    got unsigned int [noderef] *
drivers/input/serio/apbps2.c:65:26: warning: incorrect type in argument 1 (different address spaces)
drivers/input/serio/apbps2.c:65:26:    expected void const volatile [noderef] <asn:2> *addr
[rest snipped]
Signed-off-by: default avatarBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Link: https://lore.kernel.org/r/20191217122507.2157454-1-ben.dooks@codethink.co.ukSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent cbe821a2
...@@ -51,7 +51,7 @@ struct apbps2_regs { ...@@ -51,7 +51,7 @@ struct apbps2_regs {
struct apbps2_priv { struct apbps2_priv {
struct serio *io; struct serio *io;
struct apbps2_regs *regs; struct apbps2_regs __iomem *regs;
}; };
static int apbps2_idx; static int apbps2_idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment