treewide: Fix old-style declarations
Replace old style declaration "const static" with "static const". This to enable "Wold-style-declaration" command option. Change-Id: I757632befed1854f422daaf4dfea58281b16e2f5 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71841 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
*
|
||||
* TODO: Find out which I2C controllers we really need to enable here.
|
||||
*/
|
||||
const static unsigned int aoac_devs[] = {
|
||||
static const unsigned int aoac_devs[] = {
|
||||
FCH_AOAC_DEV_AMBA,
|
||||
FCH_AOAC_DEV_I2C0,
|
||||
FCH_AOAC_DEV_I2C1,
|
||||
|
@@ -29,7 +29,7 @@
|
||||
* amd_pci_int_defs.h, just add the pair at the end of this table.
|
||||
* Order is not important.
|
||||
*/
|
||||
const static struct irq_idx_name irq_association[] = {
|
||||
static const struct irq_idx_name irq_association[] = {
|
||||
{ PIRQ_A, "INTA#" },
|
||||
{ PIRQ_B, "INTB#" },
|
||||
{ PIRQ_C, "INTC#" },
|
||||
|
@@ -28,7 +28,7 @@
|
||||
*
|
||||
* TODO: Find out which I2C controllers we really need to enable here.
|
||||
*/
|
||||
const static unsigned int aoac_devs[] = {
|
||||
static const unsigned int aoac_devs[] = {
|
||||
FCH_AOAC_DEV_AMBA,
|
||||
FCH_AOAC_DEV_I2C0,
|
||||
FCH_AOAC_DEV_I2C1,
|
||||
|
@@ -25,7 +25,7 @@
|
||||
* amd_pci_int_defs.h, just add the pair at the end of this table.
|
||||
* Order is not important.
|
||||
*/
|
||||
const static struct irq_idx_name irq_association[] = {
|
||||
static const struct irq_idx_name irq_association[] = {
|
||||
{ PIRQ_A, "INTA#" },
|
||||
{ PIRQ_B, "INTB#" },
|
||||
{ PIRQ_C, "INTC#" },
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*
|
||||
* TODO: Find out which I2C controllers we really need to enable here.
|
||||
*/
|
||||
const static unsigned int aoac_devs[] = {
|
||||
static const unsigned int aoac_devs[] = {
|
||||
FCH_AOAC_DEV_AMBA,
|
||||
FCH_AOAC_DEV_I2C0,
|
||||
FCH_AOAC_DEV_I2C1,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
* amd_pci_int_defs.h, just add the pair at the end of this table.
|
||||
* Order is not important.
|
||||
*/
|
||||
const static struct irq_idx_name irq_association[] = {
|
||||
static const struct irq_idx_name irq_association[] = {
|
||||
{ PIRQ_A, "INTA#" },
|
||||
{ PIRQ_B, "INTB#" },
|
||||
{ PIRQ_C, "INTC#" },
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*
|
||||
* TODO: Find out which I2C controllers we really need to enable here.
|
||||
*/
|
||||
const static unsigned int aoac_devs[] = {
|
||||
static const unsigned int aoac_devs[] = {
|
||||
FCH_AOAC_DEV_AMBA,
|
||||
FCH_AOAC_DEV_I2C0,
|
||||
FCH_AOAC_DEV_I2C1,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
* amd_pci_int_defs.h, just add the pair at the end of this table.
|
||||
* Order is not important.
|
||||
*/
|
||||
const static struct irq_idx_name irq_association[] = {
|
||||
static const struct irq_idx_name irq_association[] = {
|
||||
{ PIRQ_A, "INTA#" },
|
||||
{ PIRQ_B, "INTB#" },
|
||||
{ PIRQ_C, "INTC#" },
|
||||
|
@@ -23,7 +23,7 @@
|
||||
* waiting for each device to become available, a single delay will be
|
||||
* executed. The console UART is handled separately from this table.
|
||||
*/
|
||||
const static unsigned int aoac_devs[] = {
|
||||
static const unsigned int aoac_devs[] = {
|
||||
FCH_AOAC_DEV_AMBA,
|
||||
FCH_AOAC_DEV_I2C2,
|
||||
FCH_AOAC_DEV_I2C3,
|
||||
|
@@ -31,7 +31,7 @@
|
||||
* amd_pci_int_defs.h, just add the pair at the end of this table.
|
||||
* Order is not important.
|
||||
*/
|
||||
const static struct irq_idx_name irq_association[] = {
|
||||
static const struct irq_idx_name irq_association[] = {
|
||||
{ PIRQ_A, "INTA#" },
|
||||
{ PIRQ_B, "INTB#" },
|
||||
{ PIRQ_C, "INTC#" },
|
||||
|
@@ -92,7 +92,7 @@ static int sdmmc_cbfs_open(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const static struct mem_region_device alternate_rdev =
|
||||
static const struct mem_region_device alternate_rdev =
|
||||
MEM_REGION_DEV_RO_INIT(_cbfs_cache, REGION_SIZE(cbfs_cache));
|
||||
|
||||
const struct region_device *boot_device_ro(void)
|
||||
|
Reference in New Issue
Block a user