mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 07:02:34 +02:00
Fix duplicate 'const' declaration specifiers
Thanks to Idwer and clang for noticing these problems. Corresponding to flashrom svn r1646. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Signed-off-by: Idwer Vollering <vidwer@gmail.com> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
parent
8225868465
commit
67d163d2fa
@ -26,33 +26,33 @@
|
|||||||
#include "spi.h"
|
#include "spi.h"
|
||||||
|
|
||||||
/* Note that CS# is active low, so val=0 means the chip is active. */
|
/* Note that CS# is active low, so val=0 means the chip is active. */
|
||||||
static void bitbang_spi_set_cs(const const struct bitbang_spi_master *master, int val)
|
static void bitbang_spi_set_cs(const struct bitbang_spi_master * const master, int val)
|
||||||
{
|
{
|
||||||
master->set_cs(val);
|
master->set_cs(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bitbang_spi_set_sck(const const struct bitbang_spi_master *master, int val)
|
static void bitbang_spi_set_sck(const struct bitbang_spi_master * const master, int val)
|
||||||
{
|
{
|
||||||
master->set_sck(val);
|
master->set_sck(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bitbang_spi_set_mosi(const const struct bitbang_spi_master *master, int val)
|
static void bitbang_spi_set_mosi(const struct bitbang_spi_master * const master, int val)
|
||||||
{
|
{
|
||||||
master->set_mosi(val);
|
master->set_mosi(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int bitbang_spi_get_miso(const const struct bitbang_spi_master *master)
|
static int bitbang_spi_get_miso(const struct bitbang_spi_master * const master)
|
||||||
{
|
{
|
||||||
return master->get_miso();
|
return master->get_miso();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bitbang_spi_request_bus(const const struct bitbang_spi_master *master)
|
static void bitbang_spi_request_bus(const struct bitbang_spi_master * const master)
|
||||||
{
|
{
|
||||||
if (master->request_bus)
|
if (master->request_bus)
|
||||||
master->request_bus();
|
master->request_bus();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bitbang_spi_release_bus(const const struct bitbang_spi_master *master)
|
static void bitbang_spi_release_bus(const struct bitbang_spi_master * const master)
|
||||||
{
|
{
|
||||||
if (master->release_bus)
|
if (master->release_bus)
|
||||||
master->release_bus();
|
master->release_bus();
|
||||||
|
@ -66,7 +66,7 @@ int spi_ignorelist_size = 0;
|
|||||||
static uint8_t emu_status = 0;
|
static uint8_t emu_status = 0;
|
||||||
|
|
||||||
/* A legit complete SFDP table based on the MX25L6436E (rev. 1.8) datasheet. */
|
/* A legit complete SFDP table based on the MX25L6436E (rev. 1.8) datasheet. */
|
||||||
static const uint8_t const sfdp_table[] = {
|
static const uint8_t sfdp_table[] = {
|
||||||
0x53, 0x46, 0x44, 0x50, // @0x00: SFDP signature
|
0x53, 0x46, 0x44, 0x50, // @0x00: SFDP signature
|
||||||
0x00, 0x01, 0x01, 0xFF, // @0x04: revision 1.0, 2 headers
|
0x00, 0x01, 0x01, 0xFF, // @0x04: revision 1.0, 2 headers
|
||||||
0x00, 0x00, 0x01, 0x09, // @0x08: JEDEC SFDP header rev. 1.0, 9 DW long
|
0x00, 0x00, 0x01, 0x09, // @0x08: JEDEC SFDP header rev. 1.0, 9 DW long
|
||||||
|
@ -335,7 +335,7 @@ void prettyprint_ich_descriptor_pchstraps111213_56(const struct ich_desc_south_s
|
|||||||
|
|
||||||
void prettyprint_ich_descriptor_straps_ibex(const struct ich_desc_south_strap *s)
|
void prettyprint_ich_descriptor_straps_ibex(const struct ich_desc_south_strap *s)
|
||||||
{
|
{
|
||||||
static const uint8_t const dec_t209min[4] = {
|
static const uint8_t dec_t209min[4] = {
|
||||||
100,
|
100,
|
||||||
50,
|
50,
|
||||||
5,
|
5,
|
||||||
|
2
ichspi.c
2
ichspi.c
@ -1127,7 +1127,7 @@ static void ich_hwseq_set_addr(uint32_t addr)
|
|||||||
static uint32_t ich_hwseq_get_erase_block_size(unsigned int addr)
|
static uint32_t ich_hwseq_get_erase_block_size(unsigned int addr)
|
||||||
{
|
{
|
||||||
uint8_t enc_berase;
|
uint8_t enc_berase;
|
||||||
static const uint32_t const dec_berase[4] = {
|
static const uint32_t dec_berase[4] = {
|
||||||
256,
|
256,
|
||||||
4 * 1024,
|
4 * 1024,
|
||||||
8 * 1024,
|
8 * 1024,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user