| .. | .. |
|---|
| 733 | 733 | return ret; |
|---|
| 734 | 734 | } |
|---|
| 735 | 735 | |
|---|
| 736 | | -static void sc27xx_fgu_external_power_changed(struct power_supply *psy) |
|---|
| 737 | | -{ |
|---|
| 738 | | - struct sc27xx_fgu_data *data = power_supply_get_drvdata(psy); |
|---|
| 739 | | - |
|---|
| 740 | | - power_supply_changed(data->battery); |
|---|
| 741 | | -} |
|---|
| 742 | | - |
|---|
| 743 | 736 | static int sc27xx_fgu_property_is_writeable(struct power_supply *psy, |
|---|
| 744 | 737 | enum power_supply_property psp) |
|---|
| 745 | 738 | { |
|---|
| .. | .. |
|---|
| 774 | 767 | .num_properties = ARRAY_SIZE(sc27xx_fgu_props), |
|---|
| 775 | 768 | .get_property = sc27xx_fgu_get_property, |
|---|
| 776 | 769 | .set_property = sc27xx_fgu_set_property, |
|---|
| 777 | | - .external_power_changed = sc27xx_fgu_external_power_changed, |
|---|
| 770 | + .external_power_changed = power_supply_changed, |
|---|
| 778 | 771 | .property_is_writeable = sc27xx_fgu_property_is_writeable, |
|---|
| 779 | 772 | .no_thermal = true, |
|---|
| 780 | 773 | }; |
|---|