diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 13:11:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 13:11:08 -0400 |
commit | 433c24ed7ff378b22c4d6531a4ce1ffc62642395 (patch) | |
tree | d71181129b05d923100d160ca000f6771fc0ac85 /drivers/input | |
parent | 85afd82780df133f03185aec7943ee3e0ed56a7b (diff) | |
parent | f056878332a91ed984a116bad4e7d49aefff9e6e (diff) |
Merge git://git.infradead.org/battery-2.6
* git://git.infradead.org/battery-2.6:
power_supply: Add driver for the PMU on WM831x PMICs
ds2760_battery: Fix integer overflow for time_to_empty_now
wm97xx_battery: Convert to dev_pm_ops
wm97xx_battery: Use irq to detect charger state
wm97xx_battery: Use platform_data
wm97xx-core: Pass platform_data to battery
ds2760_battery: implement set_charged() feature
power_supply: get_by_name and set_charged functionality
power_supply: EXPORT_SYMBOL cleanups
ds2760_battery: add current_accum module parameter
ds2760_battery: handle full_active_uAh == 0 case correctly
ds2760_battery: add rated_capacity module parameter
ds2760_battery: export more features
ds2760_battery: delay power supply registration
wm8350_power: Implement charge type property
power_supply: Add a charge_type property, and use it for olpc driver
olpc_battery: Add an 'error' sysfs device that displays raw errors
Revert "power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL"
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/wm97xx-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c index 252eb11fe9db..f944918466e5 100644 --- a/drivers/input/touchscreen/wm97xx-core.c +++ b/drivers/input/touchscreen/wm97xx-core.c | |||
@@ -561,6 +561,7 @@ static void wm97xx_ts_input_close(struct input_dev *idev) | |||
561 | static int wm97xx_probe(struct device *dev) | 561 | static int wm97xx_probe(struct device *dev) |
562 | { | 562 | { |
563 | struct wm97xx *wm; | 563 | struct wm97xx *wm; |
564 | struct wm97xx_pdata *pdata = dev->platform_data; | ||
564 | int ret = 0, id = 0; | 565 | int ret = 0, id = 0; |
565 | 566 | ||
566 | wm = kzalloc(sizeof(struct wm97xx), GFP_KERNEL); | 567 | wm = kzalloc(sizeof(struct wm97xx), GFP_KERNEL); |
@@ -658,6 +659,7 @@ static int wm97xx_probe(struct device *dev) | |||
658 | } | 659 | } |
659 | platform_set_drvdata(wm->battery_dev, wm); | 660 | platform_set_drvdata(wm->battery_dev, wm); |
660 | wm->battery_dev->dev.parent = dev; | 661 | wm->battery_dev->dev.parent = dev; |
662 | wm->battery_dev->dev.platform_data = pdata; | ||
661 | ret = platform_device_add(wm->battery_dev); | 663 | ret = platform_device_add(wm->battery_dev); |
662 | if (ret < 0) | 664 | if (ret < 0) |
663 | goto batt_reg_err; | 665 | goto batt_reg_err; |
@@ -671,6 +673,7 @@ static int wm97xx_probe(struct device *dev) | |||
671 | } | 673 | } |
672 | platform_set_drvdata(wm->touch_dev, wm); | 674 | platform_set_drvdata(wm->touch_dev, wm); |
673 | wm->touch_dev->dev.parent = dev; | 675 | wm->touch_dev->dev.parent = dev; |
676 | wm->touch_dev->dev.platform_data = pdata; | ||
674 | ret = platform_device_add(wm->touch_dev); | 677 | ret = platform_device_add(wm->touch_dev); |
675 | if (ret < 0) | 678 | if (ret < 0) |
676 | goto touch_reg_err; | 679 | goto touch_reg_err; |