Commit d47aa761 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: battery FIXME added

parent 33ea3a3f
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
struct gb_battery { struct gb_battery {
struct power_supply bat; 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; struct greybus_device *gdev;
}; };
#define to_gb_battery(x) container_of(x, struct gb_battery, bat) #define to_gb_battery(x) container_of(x, struct gb_battery, bat)
...@@ -47,8 +51,6 @@ static int get_voltage(struct gb_battery *gb) ...@@ -47,8 +51,6 @@ static int get_voltage(struct gb_battery *gb)
return 0; return 0;
} }
static int get_property(struct power_supply *b, static int get_property(struct power_supply *b,
enum power_supply_property psp, enum power_supply_property psp,
union power_supply_propval *val) union power_supply_propval *val)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment