@@ -335,14 +335,14 @@ static int bd70528_get_present(struct bd70528_psy *bdpsy, int *val)
335
335
return 0 ;
336
336
}
337
337
338
- struct linear_range {
338
+ struct bd70528_linear_range {
339
339
int min ;
340
340
int step ;
341
341
int vals ;
342
342
int low_sel ;
343
343
};
344
344
345
- static const struct linear_range current_limit_ranges [] = {
345
+ static const struct bd70528_linear_range current_limit_ranges [] = {
346
346
{
347
347
.min = 5 ,
348
348
.step = 1 ,
@@ -374,7 +374,7 @@ static const struct linear_range current_limit_ranges[] = {
374
374
* voltage for low temperatures. The driver currently only reads
375
375
* the charge current at room temperature. We do set both though.
376
376
*/
377
- static const struct linear_range warm_charge_curr [] = {
377
+ static const struct bd70528_linear_range warm_charge_curr [] = {
378
378
{
379
379
.min = 10 ,
380
380
.step = 10 ,
@@ -398,7 +398,7 @@ static const struct linear_range warm_charge_curr[] = {
398
398
#define MAX_WARM_CHG_CURR_SEL 0x1f
399
399
#define MIN_CHG_CURR_SEL 0x0
400
400
401
- static int find_value_for_selector_low (const struct linear_range * r ,
401
+ static int find_value_for_selector_low (const struct bd70528_linear_range * r ,
402
402
int selectors , unsigned int sel ,
403
403
unsigned int * val )
404
404
{
@@ -420,7 +420,7 @@ static int find_value_for_selector_low(const struct linear_range *r,
420
420
* I guess it is enough if we use voltage/current which is closest (below)
421
421
* the requested?
422
422
*/
423
- static int find_selector_for_value_low (const struct linear_range * r ,
423
+ static int find_selector_for_value_low (const struct bd70528_linear_range * r ,
424
424
int selectors , unsigned int val ,
425
425
unsigned int * sel , bool * found )
426
426
{
0 commit comments