Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a1cd739 authored by Eric Miao's avatar Eric Miao Committed by Dmitry Torokhov
Browse files

Input: pxa27x_keypad - remove pin configuration from the driver



The pin configurations will slowly be moved to the board specific code
at initialization thus to make the driver more generic.

Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 0e5f11aa
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -208,10 +208,6 @@ static int __devinit pxa27x_keypad_probe(struct platform_device *pdev)
	if (error)
		goto err_free_irq;

	/* Setup GPIOs. */
	for (i = 0; i < pdata->nr_rows + pdata->nr_cols; i++)
		pxa_gpio_mode(pdata->gpio_modes[i]);

	/*
	 * Store rows/cols info into keyboard registers.
	 */
+0 −1
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@
struct pxa27x_keypad_platform_data {
	int nr_rows, nr_cols;
	int keycodes[PXAKBD_MAXROW][PXAKBD_MAXCOL];
	int gpio_modes[PXAKBD_MAXROW + PXAKBD_MAXCOL];

#ifdef CONFIG_PM
	u32 reg_kpc;