kernel: update kernel 4.4 to 4.4.59
[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 --- a/drivers/staging/media/lirc/lirc_rpi.c
18 +++ b/drivers/staging/media/lirc/lirc_rpi.c
19 @@ -64,8 +64,6 @@
20
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."
30 " (default 18");
31
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)");
35 -
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 )");