blob: ff16f0b113aea3fb03ea445695ef9ba68380b182 [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001From a2f603c54013cd0b04bb0103dc615644f315d5e8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 15 Nov 2016 17:39:24 +0000
4Subject: [PATCH] ichspi.c: Fix build with clang
5
6ichspi.c:1130:24: error: duplicate 'const' declaration specifier [-Werror,-Wduplicate-decl-specifier]
7 static const uint32_t const dec_berase[4] = {
8 ^
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 ichspi.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/ichspi.c b/ichspi.c
15index 0223ae3..e47aebd 100644
16--- a/ichspi.c
17+++ b/ichspi.c
18@@ -1127,7 +1127,7 @@ static void ich_hwseq_set_addr(uint32_t addr)
19 static uint32_t ich_hwseq_get_erase_block_size(unsigned int addr)
20 {
21 uint8_t enc_berase;
22- static const uint32_t const dec_berase[4] = {
23+ static const uint32_t dec_berase[4] = {
24 256,
25 4 * 1024,
26 8 * 1024,
27--
281.9.1
29