0557-lirc_rpi-Delete-vestigial-gpio_in_pull-parameter.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. The RPi GPIO no longer support run-time "pull" settings - one should
  6. Device Tree and pinctrl instead - so remove the parameter to avoid
  7. confusion.
  8. See: https://github.com/raspberrypi/linux/issues/1711
  9. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  10. ---
  11. drivers/staging/media/lirc/lirc_rpi.c | 6 ------
  12. 1 file changed, 6 deletions(-)
  13. --- a/drivers/staging/media/lirc/lirc_rpi.c
  14. +++ b/drivers/staging/media/lirc/lirc_rpi.c
  15. @@ -64,8 +64,6 @@
  16. /* set the default GPIO input pin */
  17. static int gpio_in_pin = 18;
  18. -/* set the default pull behaviour for input pin */
  19. -static int gpio_in_pull = BCM2708_PULL_DOWN;
  20. /* set the default GPIO output pin */
  21. static int gpio_out_pin = 17;
  22. /* enable debugging messages */
  23. @@ -716,10 +714,6 @@ module_param(gpio_in_pin, int, S_IRUGO);
  24. MODULE_PARM_DESC(gpio_in_pin, "GPIO input pin number of the BCM processor."
  25. " (default 18");
  26. -module_param(gpio_in_pull, int, S_IRUGO);
  27. -MODULE_PARM_DESC(gpio_in_pull, "GPIO input pin pull configuration."
  28. - " (0 = off, 1 = up, 2 = down, default down)");
  29. -
  30. module_param(sense, int, S_IRUGO);
  31. MODULE_PARM_DESC(sense, "Override autodetection of IR receiver circuit"
  32. " (0 = active high, 1 = active low )");