Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
linux-pinebook-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Schramm
linux-pinebook-pro
Commits
dbbb7959
Commit
dbbb7959
authored
Nov 25, 2019
by
Tobias Schramm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/power: cw2015_battery: Add design charge_full_design_property
Thanks to schaecsn for this suggestion
parent
24759b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
drivers/power/supply/cw2015_battery.c
drivers/power/supply/cw2015_battery.c
+2
-0
No files found.
drivers/power/supply/cw2015_battery.c
View file @
dbbb7959
...
...
@@ -655,6 +655,7 @@ static int cw_battery_get_property(struct power_supply *psy,
break
;
case
POWER_SUPPLY_PROP_CHARGE_FULL
:
case
POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN
:
val
->
intval
=
cw_bat
->
plat_data
.
design_capacity
*
1000
;
break
;
...
...
@@ -694,6 +695,7 @@ static enum power_supply_property cw_battery_properties[] = {
POWER_SUPPLY_PROP_TECHNOLOGY
,
POWER_SUPPLY_PROP_CHARGE_COUNTER
,
POWER_SUPPLY_PROP_CHARGE_FULL
,
POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN
,
POWER_SUPPLY_PROP_TEMP
,
POWER_SUPPLY_PROP_CURRENT_NOW
,
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment