mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +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:
@ -26,33 +26,33 @@
|
||||
#include "spi.h"
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
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)
|
||||
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)
|
||||
master->release_bus();
|
||||
|
Reference in New Issue
Block a user