diff mbox series

[1/2] board: ti: am57xx: use GPIO_TO_PIN() to define GPIO number

Message ID 20200521130625.14609-1-luca@lucaceresoli.net
State Accepted
Commit 1c162722d7c7f16b8a1bf3818a0991f373eda869
Delegated to: Lokesh Vutla
Headers show
Series [1/2] board: ti: am57xx: use GPIO_TO_PIN() to define GPIO number | expand

Commit Message

Luca Ceresoli May 21, 2020, 1:06 p.m. UTC
Using the macro makes code readable without the need for a comment.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
 board/ti/am57xx/board.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Lokesh Vutla June 18, 2020, 1:54 p.m. UTC | #1
On 21/05/20 6:36 pm, Luca Ceresoli wrote:
> Using the macro makes code readable without the need for a comment.
> 
> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>

Series Applied to u-boot-ti next.

Thanks and regards,
Lokesh


>
diff mbox series

Patch

diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 8720eb87a55d..c41aa24f957b 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -68,8 +68,7 @@  static int board_bootmode_has_emmc(void);
 DECLARE_GLOBAL_DATA_PTR;
 
 #define GPIO_ETH_LCD		GPIO_TO_PIN(2, 22)
-/* GPIO 7_11 */
-#define GPIO_DDR_VTT_EN 203
+#define GPIO_DDR_VTT_EN		GPIO_TO_PIN(7, 11)
 
 /* Touch screen controller to identify the LCD */
 #define OSD_TS_FT_BUS_ADDRESS	0