Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367455
b: refs/heads/master
c: 330b7eb
h: refs/heads/master
i:
  367453: 111df6c
  367451: d020d5e
  367447: d19b9da
  367439: 629b106
  367423: 2a2e132
v: v3
  • Loading branch information
Lee Jones committed Mar 7, 2013
1 parent 4a46de6 commit ad732e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 584f970339bb259d4ac7dd82b355f283550193b2
refs/heads/master: 330b7ebfa59d70ea5b814a04a28b8c7d8e462a81
5 changes: 4 additions & 1 deletion trunk/drivers/power/abx500_chargalg.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ enum maxim_ret {
* @batt_data: data of the battery
* @susp_status: current charger suspension status
* @bm: Platform specific battery management information
* @parent: pointer to the struct abx500
* @chargalg_psy: structure that holds the battery properties exposed by
* the charging algorithm
* @events: structure for information about events triggered
Expand All @@ -227,6 +228,7 @@ struct abx500_chargalg {
struct abx500_chargalg_charger_info chg_info;
struct abx500_chargalg_battery_data batt_data;
struct abx500_chargalg_suspension_status susp_status;
struct ab8500 *parent;
struct abx500_bm_data *bm;
struct power_supply chargalg_psy;
struct ux500_charger *ac_chg;
Expand Down Expand Up @@ -1873,8 +1875,9 @@ static int abx500_chargalg_probe(struct platform_device *pdev)
}
}

/* get device struct */
/* get device struct and parent */
di->dev = &pdev->dev;
di->parent = dev_get_drvdata(pdev->dev.parent);

/* chargalg supply */
di->chargalg_psy.name = "abx500_chargalg";
Expand Down

0 comments on commit ad732e7

Please sign in to comment.