aboutsummaryrefslogtreecommitdiffstats
path: root/board_enable.c
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-06-21 15:24:17 -0600
committerNico Huber <nico.h@gmx.de>2019-06-23 21:39:31 +0000
commitbeeb8bc925bef6973e1c9fa6c4fd26a4113a1777 (patch)
tree30c63cf4ae4bb14a19849b1680622ad6eed86d63 /board_enable.c
parentcb44eb7dad17522f47792dca4fc499310ff7d6f3 (diff)
downloadflashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.tar.gz
flashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.tar.bz2
flashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.zip
tree: Make internal functions static
None of these functions are used outside of the files they are defined in, so make them all static. Change-Id: Ie9cbe12d289bcedacf2f1bf483ae64ef8039ccc1 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33667 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'board_enable.c')
-rw-r--r--board_enable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board_enable.c b/board_enable.c
index b5a54427..58760363 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -67,7 +67,7 @@ void sio_mask(uint16_t port, uint8_t reg, uint8_t data, uint8_t mask)
}
/* Winbond W83697 documentation indicates that the index register has to be written for each access. */
-void sio_mask_alzheimer(uint16_t port, uint8_t reg, uint8_t data, uint8_t mask)
+static void sio_mask_alzheimer(uint16_t port, uint8_t reg, uint8_t data, uint8_t mask)
{
uint8_t tmp;
@@ -519,7 +519,7 @@ static void w836xx_memw_enable(uint16_t port)
* Supported chips:
* W83697HF/F/HG, W83697SF/UF/UG
*/
-void w83697xx_memw_enable(uint16_t port)
+static void w83697xx_memw_enable(uint16_t port)
{
w836xx_ext_enter(port);
if (!(sio_read(port, 0x24) & 0x02)) { /* Flash ROM enabled? */