1 From 42676fa4aa87eda4fc762df495d4bde2ddc4bfce Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Tue, 11 Oct 2016 17:46:00 +0200
4 Subject: pinctrl: sunxi: Use macros from bindings header file for DT parsing
6 Since we have some bindings header for our hardcoded flags, let's use them
9 Acked-by: Chen-Yu Tsai <wens@csie.org>
10 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
11 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 drivers/pinctrl/sunxi/pinctrl-sunxi.c | 6 ++++--
14 1 file changed, 4 insertions(+), 2 deletions(-)
16 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
17 +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
19 #include <linux/platform_device.h>
20 #include <linux/slab.h>
22 +#include <dt-bindings/pinctrl/sun4i-a10.h>
25 #include "pinctrl-sunxi.h"
27 @@ -163,9 +165,9 @@ static int sunxi_pctrl_parse_bias_prop(s
32 + case SUN4I_PINCTRL_PULL_UP:
33 return PIN_CONFIG_BIAS_PULL_UP;
35 + case SUN4I_PINCTRL_PULL_DOWN:
36 return PIN_CONFIG_BIAS_PULL_DOWN;