1 From d2517545ca23d2a147402f7c5f736d046e921b34 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 5 Dec 2016 09:58:16 +0000
4 Subject: [PATCH] lirc_rpi: Delete vestigial gpio_in_pull parameter
6 The RPi GPIO no longer support run-time "pull" settings - one should
7 Device Tree and pinctrl instead - so remove the parameter to avoid
10 See: https://github.com/raspberrypi/linux/issues/1711
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
14 drivers/staging/media/lirc/lirc_rpi.c | 6 ------
15 1 file changed, 6 deletions(-)
17 --- a/drivers/staging/media/lirc/lirc_rpi.c
18 +++ b/drivers/staging/media/lirc/lirc_rpi.c
21 /* set the default GPIO input pin */
22 static int gpio_in_pin = 18;
23 -/* set the default pull behaviour for input pin */
24 -static int gpio_in_pull = BCM2708_PULL_DOWN;
25 /* set the default GPIO output pin */
26 static int gpio_out_pin = 17;
27 /* enable debugging messages */
28 @@ -716,10 +714,6 @@ module_param(gpio_in_pin, int, S_IRUGO);
29 MODULE_PARM_DESC(gpio_in_pin, "GPIO input pin number of the BCM processor."
32 -module_param(gpio_in_pull, int, S_IRUGO);
33 -MODULE_PARM_DESC(gpio_in_pull, "GPIO input pin pull configuration."
34 - " (0 = off, 1 = up, 2 = down, default down)");
36 module_param(sense, int, S_IRUGO);
37 MODULE_PARM_DESC(sense, "Override autodetection of IR receiver circuit"
38 " (0 = active high, 1 = active low )");