9ebcc22239138d670fe0daabe494dbc3d3289b61
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0557-lirc_rpi-Delete-vestigial-gpio_in_pull-parameter.patch
1 From a5cf7bed6a2d7267e2f0a3109807051e166930fb 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
5
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
8 confusion.
9
10 See: https://github.com/raspberrypi/linux/issues/1711
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
13 ---
14 drivers/staging/media/lirc/lirc_rpi.c | 6 ------
15 1 file changed, 6 deletions(-)
16
17 diff --git a/drivers/staging/media/lirc/lirc_rpi.c b/drivers/staging/media/lirc/lirc_rpi.c
18 index 6132896..ebbf0d6 100644
19 --- a/drivers/staging/media/lirc/lirc_rpi.c
20 +++ b/drivers/staging/media/lirc/lirc_rpi.c
21 @@ -64,8 +64,6 @@
22
23 /* set the default GPIO input pin */
24 static int gpio_in_pin = 18;
25 -/* set the default pull behaviour for input pin */
26 -static int gpio_in_pull = BCM2708_PULL_DOWN;
27 /* set the default GPIO output pin */
28 static int gpio_out_pin = 17;
29 /* enable debugging messages */
30 @@ -716,10 +714,6 @@ module_param(gpio_in_pin, int, S_IRUGO);
31 MODULE_PARM_DESC(gpio_in_pin, "GPIO input pin number of the BCM processor."
32 " (default 18");
33
34 -module_param(gpio_in_pull, int, S_IRUGO);
35 -MODULE_PARM_DESC(gpio_in_pull, "GPIO input pin pull configuration."
36 - " (0 = off, 1 = up, 2 = down, default down)");
37 -
38 module_param(sense, int, S_IRUGO);
39 MODULE_PARM_DESC(sense, "Override autodetection of IR receiver circuit"
40 " (0 = active high, 1 = active low )");
41 --
42 2.1.4
43