Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d47aa761
Commit
d47aa761
authored
Sep 07, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: battery FIXME added
parent
33ea3a3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drivers/staging/greybus/battery-gb.c
drivers/staging/greybus/battery-gb.c
+4
-2
No files found.
drivers/staging/greybus/battery-gb.c
View file @
d47aa761
...
...
@@ -14,6 +14,10 @@
struct
gb_battery
{
struct
power_supply
bat
;
// FIXME
// we will want to keep the battery stats in here as we will be getting
// updates from the SVC "on the fly" so we don't have to always go ask
// the battery for some information. Hopefully...
struct
greybus_device
*
gdev
;
};
#define to_gb_battery(x) container_of(x, struct gb_battery, bat)
...
...
@@ -47,8 +51,6 @@ static int get_voltage(struct gb_battery *gb)
return
0
;
}
static
int
get_property
(
struct
power_supply
*
b
,
enum
power_supply_property
psp
,
union
power_supply_propval
*
val
)
...
...
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