diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-04-06 21:25:36 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-04-06 21:26:53 -0400 |
commit | 75ad7c9792ec110cc92e2409d8c0345979660a7b (patch) | |
tree | 423906562cb41b95d758e48fedfaf7462afd7ea1 /firmware/target/hosted/samsungypr | |
parent | 7b25c32388770b07dce030812a46505da2696304 (diff) | |
download | rockbox-75ad7c9792ec110cc92e2409d8c0345979660a7b.tar.gz rockbox-75ad7c9792ec110cc92e2409d8c0345979660a7b.zip |
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
Diffstat (limited to 'firmware/target/hosted/samsungypr')
-rw-r--r-- | firmware/target/hosted/samsungypr/ypr0/powermgmt-ypr0.c | 4 | ||||
-rw-r--r-- | firmware/target/hosted/samsungypr/ypr1/powermgmt-ypr1.c | 2 |
2 files changed, 3 insertions, 3 deletions
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] = | |||
56 | 56 | ||
57 | #if CONFIG_CHARGING | 57 | #if CONFIG_CHARGING |
58 | /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ | 58 | /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ |
59 | const unsigned short const percent_to_volt_charge[11] = | 59 | const unsigned short percent_to_volt_charge[11] = |
60 | { | 60 | { |
61 | 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 | 61 | 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 |
62 | }; | 62 | }; |
@@ -132,4 +132,4 @@ bool tuner_powered(void) | |||
132 | { | 132 | { |
133 | return tuner_on; | 133 | return tuner_on; |
134 | } | 134 | } |
135 | #endif /* #if CONFIG_TUNER */ \ No newline at end of file | 135 | #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] = | |||
76 | 76 | ||
77 | #if CONFIG_CHARGING | 77 | #if CONFIG_CHARGING |
78 | /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ | 78 | /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ |
79 | const unsigned short const percent_to_volt_charge[11] = | 79 | const unsigned short percent_to_volt_charge[11] = |
80 | { | 80 | { |
81 | 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 | 81 | 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 |
82 | }; | 82 | }; |