From 999a15c8871788e57631f4236308a6ea9173053f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 5 May 2018 19:01:41 +0200 Subject: [PATCH] boot: Make gpio helper functions internally linked --- stratosphere/boot/source/boot_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stratosphere/boot/source/boot_main.cpp b/stratosphere/boot/source/boot_main.cpp index da12d4ce3..02169c99d 100644 --- a/stratosphere/boot/source/boot_main.cpp +++ b/stratosphere/boot/source/boot_main.cpp @@ -145,7 +145,7 @@ static const std::tuple g_gpio_map[] = { {0x000000E6, false, false}, /* Port CC, Pin 6 */ }; -int gpio_configure(u64 gpio_base_vaddr, unsigned int gpio_pad_name) { +static int gpio_configure(u64 gpio_base_vaddr, unsigned int gpio_pad_name) { /* Fetch this GPIO's pad descriptor */ u32 gpio_pad_desc = std::get<0>(g_gpio_map[gpio_pad_name]); @@ -164,7 +164,7 @@ int gpio_configure(u64 gpio_base_vaddr, unsigned int gpio_pad_name) { return gpio_cnf_val; } -int gpio_set_direction(u64 gpio_base_vaddr, unsigned int gpio_pad_name) { +static int gpio_set_direction(u64 gpio_base_vaddr, unsigned int gpio_pad_name) { /* Fetch this GPIO's pad descriptor */ u32 gpio_pad_desc = std::get<0>(g_gpio_map[gpio_pad_name]); @@ -186,7 +186,7 @@ int gpio_set_direction(u64 gpio_base_vaddr, unsigned int gpio_pad_name) { return gpio_oe_val; } -int gpio_set_output(u64 gpio_base_vaddr, unsigned int gpio_pad_name) { +static int gpio_set_output(u64 gpio_base_vaddr, unsigned int gpio_pad_name) { /* Fetch this GPIO's pad descriptor */ u32 gpio_pad_desc = std::get<0>(g_gpio_map[gpio_pad_name]);