From 2a3e1628a50b9de7c1462ee95eb79937795f5409 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sun, 11 Jan 2015 21:40:51 +0100 Subject: Limit more variables to file scope Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361 --- firmware/drivers/ata_flash.c | 2 +- firmware/drivers/lcd-charset-player.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/ata_flash.c b/firmware/drivers/ata_flash.c index 96ea1cfa68..fbdd7f04ee 100644 --- a/firmware/drivers/ata_flash.c +++ b/firmware/drivers/ata_flash.c @@ -42,7 +42,7 @@ #define SECTOR_SIZE (512) -long last_disk_activity = -1; +static long last_disk_activity = -1; #if CONFIG_FLASH == FLASH_IFP7XX static unsigned char flash_ce[4] = {0x20, 0x02, 0x10, 0x08}; diff --git a/firmware/drivers/lcd-charset-player.c b/firmware/drivers/lcd-charset-player.c index 68404c6230..b1f6f6dae2 100644 --- a/firmware/drivers/lcd-charset-player.c +++ b/firmware/drivers/lcd-charset-player.c @@ -115,7 +115,7 @@ enum { #endif }; -const struct xchar_info xchar_info_newlcd[] = { +static const struct xchar_info xchar_info_newlcd[] = { /* Standard ascii */ { 0x20, 0, 0, 0x20 }, /* */ { 0x21, 0, 0, 0x21 }, /* ! */ @@ -641,7 +641,7 @@ const struct xchar_info xchar_info_newlcd[] = { { 0xfffd, 0, 0, 0x91 }, }; -const struct xchar_info xchar_info_oldlcd[] = { +static const struct xchar_info xchar_info_oldlcd[] = { /* Standard ascii */ { 0x20, 0, 0, 0x24 }, /* */ { 0x21, 0, 0, 0x25 }, /* ! */ -- cgit v1.2.3