From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic Desroches Date: Tue, 06 Feb 2018 07:31:22 +0000 Subject: [PATCH V2] video: fbdev: atmel_lcdfb: convert to use GPIO descriptors Message-Id: <20180206073122.3618-1-ludovic.desroches@microchip.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: nicolas.ferre@microchip.com, alexandre.belloni@free-electrons.com, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, b.zolnierkie@samsung.com, andy.shevchenko@gmail.com, Ludovic Desroches Use GPIO descriptors instead of relying on the old method. Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre Reviewed-by: Linus Walleij Reviewed-by: Andy Shevchenko --- Changes - V2: - remove of_gpio.h. - move gpiod declaration to preserve reversed tree style. - use devm_gpiod_get_index instead of devm_gpiod_get_index_optional since all errors are treated in the same way. drivers/video/fbdev/atmel_lcdfb.c | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c index 3dee267d7c75..076d24afbd72 100644 --- a/drivers/video/fbdev/atmel_lcdfb.c +++ b/drivers/video/fbdev/atmel_lcdfb.c @@ -18,10 +18,10 @@ #include #include #include +#include #include #include #include -#include #include