arch/x86: Change power_res_dev_states[] to be static const * const
This change makes power_res_dev_states[] to be static const * const as complained by Jenkins. BUG=b:155428745 Change-Id: Ice2fff6ab3bcd72a059bc905b7462a681f2e6aaf Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40935 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
b1859a6687
commit
dc78275993
|
@ -527,7 +527,7 @@ void acpi_device_write_spi(const struct acpi_spi *spi)
|
||||||
/* PowerResource() with Enable and/or Reset control */
|
/* PowerResource() with Enable and/or Reset control */
|
||||||
void acpi_device_add_power_res(const struct acpi_power_res_params *params)
|
void acpi_device_add_power_res(const struct acpi_power_res_params *params)
|
||||||
{
|
{
|
||||||
static const char *power_res_dev_states[] = { "_PR0", "_PR3" };
|
static const char * const power_res_dev_states[] = { "_PR0", "_PR3" };
|
||||||
unsigned int reset_gpio = params->reset_gpio ? params->reset_gpio->pins[0] : 0;
|
unsigned int reset_gpio = params->reset_gpio ? params->reset_gpio->pins[0] : 0;
|
||||||
unsigned int enable_gpio = params->enable_gpio ? params->enable_gpio->pins[0] : 0;
|
unsigned int enable_gpio = params->enable_gpio ? params->enable_gpio->pins[0] : 0;
|
||||||
unsigned int stop_gpio = params->stop_gpio ? params->stop_gpio->pins[0] : 0;
|
unsigned int stop_gpio = params->stop_gpio ? params->stop_gpio->pins[0] : 0;
|
||||||
|
|
|
@ -1147,7 +1147,7 @@ void acpigen_write_uuid(const char *uuid)
|
||||||
* PowerResource (name, level, order)
|
* PowerResource (name, level, order)
|
||||||
*/
|
*/
|
||||||
void acpigen_write_power_res(const char *name, uint8_t level, uint16_t order,
|
void acpigen_write_power_res(const char *name, uint8_t level, uint16_t order,
|
||||||
const char *dev_states[], size_t dev_states_count)
|
const char * const dev_states[], size_t dev_states_count)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < dev_states_count; i++) {
|
for (i = 0; i < dev_states_count; i++) {
|
||||||
|
|
|
@ -347,7 +347,7 @@ void acpigen_write_mainboard_resources(const char *scope, const char *name);
|
||||||
void acpigen_write_irq(u16 mask);
|
void acpigen_write_irq(u16 mask);
|
||||||
void acpigen_write_uuid(const char *uuid);
|
void acpigen_write_uuid(const char *uuid);
|
||||||
void acpigen_write_power_res(const char *name, uint8_t level, uint16_t order,
|
void acpigen_write_power_res(const char *name, uint8_t level, uint16_t order,
|
||||||
const char *dev_states[], size_t dev_states_count);
|
const char * const dev_states[], size_t dev_states_count);
|
||||||
void acpigen_write_sleep(uint64_t sleep_ms);
|
void acpigen_write_sleep(uint64_t sleep_ms);
|
||||||
void acpigen_write_store(void);
|
void acpigen_write_store(void);
|
||||||
void acpigen_write_store_ops(uint8_t src, uint8_t dst);
|
void acpigen_write_store_ops(uint8_t src, uint8_t dst);
|
||||||
|
|
Loading…
Reference in New Issue