From 75ad7c9792ec110cc92e2409d8c0345979660a7b Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 6 Apr 2024 21:25:36 -0400 Subject: Remove duplicate 'const' declaration in percent_to_volt_charge[] Affetcs many hosted targets; probably was a typo that was copy-pasted everywhere else. Change-Id: Ifbb31e7ff1fce4874fa0f3c108db59f152e2f927 --- firmware/target/hosted/agptek/powermgmt-agptek.c | 2 +- firmware/target/hosted/aigo/powermgmt-erosq.c | 2 +- firmware/target/hosted/fiio/powermgmt-fiio.c | 2 +- firmware/target/hosted/samsungypr/ypr0/powermgmt-ypr0.c | 4 ++-- firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c | 2 +- firmware/target/hosted/sonynwz/powermgmt-nwz.c | 2 +- firmware/target/hosted/xduoo/powermgmt-xduoo.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/firmware/target/hosted/agptek/powermgmt-agptek.c b/firmware/target/hosted/agptek/powermgmt-agptek.c index beb2dc14b8..02ac253d16 100644 --- a/firmware/target/hosted/agptek/powermgmt-agptek.c +++ b/firmware/target/hosted/agptek/powermgmt-agptek.c @@ -39,7 +39,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ -const unsigned short const percent_to_volt_charge[11] = +const unsigned short percent_to_volt_charge[11] = { 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196 }; diff --git a/firmware/target/hosted/aigo/powermgmt-erosq.c b/firmware/target/hosted/aigo/powermgmt-erosq.c index 5067c66426..ddc1b4b8a7 100644 --- a/firmware/target/hosted/aigo/powermgmt-erosq.c +++ b/firmware/target/hosted/aigo/powermgmt-erosq.c @@ -40,7 +40,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ -const unsigned short const percent_to_volt_charge[11] = +const unsigned short percent_to_volt_charge[11] = { 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196 }; diff --git a/firmware/target/hosted/fiio/powermgmt-fiio.c b/firmware/target/hosted/fiio/powermgmt-fiio.c index da6305d9c4..e5ee182d00 100644 --- a/firmware/target/hosted/fiio/powermgmt-fiio.c +++ b/firmware/target/hosted/fiio/powermgmt-fiio.c @@ -39,7 +39,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ -const unsigned short const percent_to_volt_charge[11] = +const unsigned short percent_to_volt_charge[11] = { 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196 }; diff --git a/firmware/target/hosted/samsungypr/ypr0/powermgmt-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/powermgmt-ypr0.c index 014a88db7c..f4c317a66e 100644 --- a/firmware/target/hosted/samsungypr/ypr0/powermgmt-ypr0.c +++ b/firmware/target/hosted/samsungypr/ypr0/powermgmt-ypr0.c @@ -56,7 +56,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = #if CONFIG_CHARGING /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ -const unsigned short const percent_to_volt_charge[11] = +const unsigned short percent_to_volt_charge[11] = { 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 }; @@ -132,4 +132,4 @@ bool tuner_powered(void) { return tuner_on; } -#endif /* #if CONFIG_TUNER */ \ No newline at end of file +#endif /* #if CONFIG_TUNER */ diff --git a/firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c b/firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c index 7eeea721a5..b60c278198 100644 --- a/firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c +++ b/firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c @@ -76,7 +76,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = #if CONFIG_CHARGING /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ -const unsigned short const percent_to_volt_charge[11] = +const unsigned short percent_to_volt_charge[11] = { 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 }; diff --git a/firmware/target/hosted/sonynwz/powermgmt-nwz.c b/firmware/target/hosted/sonynwz/powermgmt-nwz.c index 2e88f204bd..093c9c126e 100644 --- a/firmware/target/hosted/sonynwz/powermgmt-nwz.c +++ b/firmware/target/hosted/sonynwz/powermgmt-nwz.c @@ -39,7 +39,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ -const unsigned short const percent_to_volt_charge[11] = +const unsigned short percent_to_volt_charge[11] = { 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 }; diff --git a/firmware/target/hosted/xduoo/powermgmt-xduoo.c b/firmware/target/hosted/xduoo/powermgmt-xduoo.c index 855072031e..5aeb3ca761 100644 --- a/firmware/target/hosted/xduoo/powermgmt-xduoo.c +++ b/firmware/target/hosted/xduoo/powermgmt-xduoo.c @@ -39,7 +39,7 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ -const unsigned short const percent_to_volt_charge[11] = +const unsigned short percent_to_volt_charge[11] = { 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196 }; -- cgit v1.2.3