Skip to content

Commit

Permalink
ARM: dts: s3c64xx: Use common macros for pinctrl configuration
Browse files Browse the repository at this point in the history
Replace duplicated macros in each DTSI file with a common macro coming
from header.  Include the header in each pinctrl DTSI so further changes
could use it.

Although PIN_FUNC_SPC_2 does not bring much information about the
function itself, it still is more descriptive then hard-coded
number <2>.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Krzysztof Kozlowski committed Sep 16, 2016
1 parent 5e49773 commit 68175d5
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 93 deletions.
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/s3c6410-mini6410.dts
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@
&pinctrl0 {
gpio_leds: gpio-leds {
samsung,pins = "gpk-4", "gpk-5", "gpk-6", "gpk-7";
samsung,pin-pud = <PIN_PULL_NONE>;
samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
};

gpio_keys: gpio-keys {
samsung,pins = "gpn-0", "gpn-1", "gpn-2", "gpn-3",
"gpn-4", "gpn-5", "gpl-11", "gpl-12";
samsung,pin-pud = <PIN_PULL_NONE>;
samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
};
};

Expand Down
Loading

0 comments on commit 68175d5

Please sign in to comment.