aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap1/ams-delta-fiq.c
diff options
context:
space:
mode:
authorGravatar Janusz Krzysztofik <jmkrzyszt@gmail.com> 2018-06-22 00:41:28 +0200
committerGravatar Tony Lindgren <tony@atomide.com> 2018-07-02 23:05:14 -0700
commit5f73861fae087df19f7337620da65c99e4260c72 (patch)
tree87107d4faf323d42a03ef100e3c8471b027f962d /arch/arm/mach-omap1/ams-delta-fiq.c
parentInput: ams_delta_serio: use IRQ resource (diff)
downloadlinux-5f73861fae087df19f7337620da65c99e4260c72.tar.gz
linux-5f73861fae087df19f7337620da65c99e4260c72.tar.bz2
linux-5f73861fae087df19f7337620da65c99e4260c72.zip
Input: ams_delta_serio: Get FIQ buffer from platform_data
Instead of exporting the FIQ buffer symbol to be used in ams-delta-serio driver, pass it to the driver as platform_data. Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/ams-delta-fiq.c')
-rw-r--r--arch/arm/mach-omap1/ams-delta-fiq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap1/ams-delta-fiq.c b/arch/arm/mach-omap1/ams-delta-fiq.c
index 82ca4246a5e4..b0dc7ddf5877 100644
--- a/arch/arm/mach-omap1/ams-delta-fiq.c
+++ b/arch/arm/mach-omap1/ams-delta-fiq.c
@@ -40,8 +40,7 @@ static struct fiq_handler fh = {
* keystrokes received from the qwerty keyboard. See
* <linux/platform_data/ams-delta-fiq.h> for details of offsets.
*/
-unsigned int fiq_buffer[1024];
-EXPORT_SYMBOL(fiq_buffer);
+static unsigned int fiq_buffer[1024];
static struct irq_chip *irq_chip;
static struct irq_data *irq_data[16];
@@ -203,9 +202,10 @@ void __init ams_delta_init_fiq(struct gpio_chip *chip,
val = omap_readl(OMAP_IH1_BASE + offset) | 1;
omap_writel(val, OMAP_IH1_BASE + offset);
- /* Initialize serio device IRQ resource */
+ /* Initialize serio device IRQ resource and platform_data */
serio->resource[0].start = gpiod_to_irq(clk);
serio->resource[0].end = serio->resource[0].start;
+ serio->dev.platform_data = fiq_buffer;
/*
* Since FIQ handler performs handling of GPIO registers for