board: ti: am57xx: use GPIO_TO_PIN() to define GPIO number
authorLuca Ceresoli <luca@lucaceresoli.net>
Thu, 21 May 2020 13:06:24 +0000 (15:06 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Sat, 13 Jun 2020 17:42:17 +0000 (23:12 +0530)
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

index 8720eb87a55d5e5a4f71287560922ff23cee7b73..c41aa24f957b31d9badf68daa2b9dd4712dfa38b 100644 (file)
@@ -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