summaryrefslogtreecommitdiffstats
path: root/drivers/power/twl4030_madc_battery.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2015-01-29 15:39:38 +0100
committerSebastian Reichel2015-02-25 22:26:32 +0100
commitc75cfa9e27818b67e55ef9153c3f4fb9c867f7f0 (patch)
treef32ae4397d076fd97a2214dc03764cd49b0ce2b8 /drivers/power/twl4030_madc_battery.c
parentMerge branch 'fixes' into next (diff)
downloadkernel-qcow2-linux-c75cfa9e27818b67e55ef9153c3f4fb9c867f7f0.tar.gz
kernel-qcow2-linux-c75cfa9e27818b67e55ef9153c3f4fb9c867f7f0.tar.xz
kernel-qcow2-linux-c75cfa9e27818b67e55ef9153c3f4fb9c867f7f0.zip
power_supply: ab8500_fg: Simplify creation and removal of sysfs entries
Simplify a little ab8500_fg_sysfs_psy_create_attrs () and ab8500_fg_sysfs_psy_remove_attrs() functions because they received pointer to power supply device which was then converted into power supply instance. Then it was converted into struct ab8500_fg. The path looked like: ab8500_fg->psy.dev -> psy -> ab8500_fg Instead just pass pointer to struct ab8500_fg directly so all conversions won't be necessary. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/twl4030_madc_battery.c')
0 files changed, 0 insertions, 0 deletions