diff options
author | joerg <joerg@pkgsrc.org> | 2012-11-23 12:08:04 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-11-23 12:08:04 +0000 |
commit | 0d73b8219e61880906e1ed1f57e0c7957e97bd0a (patch) | |
tree | f799edb35c0a47d283ff7949d03775abfd41c8d7 /sysutils/flashrom | |
parent | 9b5d74a07a0c26533df702d49a6daee18e663036 (diff) | |
download | pkgsrc-0d73b8219e61880906e1ed1f57e0c7957e97bd0a.tar.gz |
One const ought to be enough for every type.
Diffstat (limited to 'sysutils/flashrom')
-rw-r--r-- | sysutils/flashrom/distinfo | 4 | ||||
-rw-r--r-- | sysutils/flashrom/patches/patch-bitbang__spi.c | 44 | ||||
-rw-r--r-- | sysutils/flashrom/patches/patch-ichspi.c | 13 |
3 files changed, 60 insertions, 1 deletions
diff --git a/sysutils/flashrom/distinfo b/sysutils/flashrom/distinfo index 1391ea38897..66664394f58 100644 --- a/sysutils/flashrom/distinfo +++ b/sysutils/flashrom/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.5 2012/03/08 22:47:05 jakllsch Exp $ +$NetBSD: distinfo,v 1.6 2012/11/23 12:08:04 joerg Exp $ SHA1 (flashrom-0.9.5.2.tar.bz2) = 483c16a4a8bb7ceec8ea439b13e2b97d669deb25 RMD160 (flashrom-0.9.5.2.tar.bz2) = dba65b6f12370eb686321e937e00479aff4a3739 Size (flashrom-0.9.5.2.tar.bz2) = 347242 bytes +SHA1 (patch-bitbang__spi.c) = 63fa8611cf7ebe9fa5c8e669d860c7e21d1a1095 +SHA1 (patch-ichspi.c) = 6ef54e13e6075b665fb125dd99b53887a606fa8f diff --git a/sysutils/flashrom/patches/patch-bitbang__spi.c b/sysutils/flashrom/patches/patch-bitbang__spi.c new file mode 100644 index 00000000000..e3513550daf --- /dev/null +++ b/sysutils/flashrom/patches/patch-bitbang__spi.c @@ -0,0 +1,44 @@ +$NetBSD: patch-bitbang__spi.c,v 1.1 2012/11/23 12:08:04 joerg Exp $ + +--- bitbang_spi.c.orig 2012-11-22 21:16:09.000000000 +0000 ++++ bitbang_spi.c +@@ -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 *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 *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 *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 *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 *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 *master) + { + if (master->release_bus) + master->release_bus(); diff --git a/sysutils/flashrom/patches/patch-ichspi.c b/sysutils/flashrom/patches/patch-ichspi.c new file mode 100644 index 00000000000..be8fc61e948 --- /dev/null +++ b/sysutils/flashrom/patches/patch-ichspi.c @@ -0,0 +1,13 @@ +$NetBSD: patch-ichspi.c,v 1.1 2012/11/23 12:08:04 joerg Exp $ + +--- ichspi.c.orig 2012-11-22 21:15:44.000000000 +0000 ++++ ichspi.c +@@ -1125,7 +1125,7 @@ static void ich_hwseq_set_addr(uint32_t + static uint32_t ich_hwseq_get_erase_block_size(unsigned int addr) + { + uint8_t enc_berase; +- static const uint32_t const dec_berase[4] = { ++ static const uint32_t dec_berase[4] = { + 256, + 4 * 1024, + 8 * 1024, |