Guest User

0003-mxsfb-mxsfb_init-Fix-lcd_rs_gpio.patch

a guest
Nov 30th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. From f0bf2f43b2a6717a8212e91d10a5614fc8cd1517 Mon Sep 17 00:00:00 2001
  2. From: Joe Balough <scallopedllama@gmail.com>
  3. Date: Fri, 23 Nov 2018 12:04:02 -0500
  4. Subject: [PATCH 05/11] mxsfb: mxsfb_init: Fix lcd_rs_gpio
  5.  
  6. When using a gpio for lcd_rs, request the correct gpio number
  7. (the value read from the device tree and stored in lcd_rs_gpio)
  8. instead of attempting to request the value of lcd_rs_is_gpio
  9. which is 0.
  10. This fixes using a gpio for lcd_rs.
  11. ---
  12. drivers/video/fbdev/mxsfb.c | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14.  
  15. diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c
  16. index 875577aa9cdd..18782cd61c62 100644
  17. --- a/drivers/video/fbdev/mxsfb.c
  18. +++ b/drivers/video/fbdev/mxsfb.c
  19. @@ -1550,7 +1550,7 @@ static int mxsfb_init_fbinfo_dt(struct mxsfb_info *host)
  20. host->mpu_lcd_sigs->lcd_rs_gpio = of_get_named_gpio(display_np, "lcd_rs_gpio", 0);
  21. if (gpio_is_valid(host->mpu_lcd_sigs->lcd_rs_gpio)) {
  22. dev_info(dev, "find lcd rs gpio pin.\n");
  23. - if (devm_gpio_request_one(dev, host->mpu_lcd_sigs->lcd_rs_is_gpio, GPIOF_OUT_INIT_HIGH, "lcd_rs") >= 0)
  24. + if (devm_gpio_request_one(dev, host->mpu_lcd_sigs->lcd_rs_gpio, GPIOF_OUT_INIT_HIGH, "lcd_rs") >= 0)
  25. host->mpu_lcd_sigs->lcd_rs_is_gpio = 1;
  26. }
  27.  
  28. --
  29. 2.19.1
Add Comment
Please, Sign In to add comment