ds2760_battery: cleanups in ds2760_battery_probe()

Removed struct ds2760_platform_data which wasn't defined anywhere.
Indentation cleanups.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
Acked-by: Matt Reimer <mreimer@vpop.net>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

authored by Daniel Mack and committed by Anton Vorontsov ae9fb6e8 ccc0d38e

+7 -9
+7 -9
drivers/power/ds2760_battery.c
··· 344 344 { 345 345 int retval = 0; 346 346 struct ds2760_device_info *di; 347 - struct ds2760_platform_data *pdata; 348 347 349 348 di = kzalloc(sizeof(*di), GFP_KERNEL); 350 349 if (!di) { ··· 353 354 354 355 platform_set_drvdata(pdev, di); 355 356 356 - pdata = pdev->dev.platform_data; 357 - di->dev = &pdev->dev; 358 - di->w1_dev = pdev->dev.parent; 359 - di->bat.name = dev_name(&pdev->dev); 360 - di->bat.type = POWER_SUPPLY_TYPE_BATTERY; 361 - di->bat.properties = ds2760_battery_props; 362 - di->bat.num_properties = ARRAY_SIZE(ds2760_battery_props); 363 - di->bat.get_property = ds2760_battery_get_property; 357 + di->dev = &pdev->dev; 358 + di->w1_dev = pdev->dev.parent; 359 + di->bat.name = dev_name(&pdev->dev); 360 + di->bat.type = POWER_SUPPLY_TYPE_BATTERY; 361 + di->bat.properties = ds2760_battery_props; 362 + di->bat.num_properties = ARRAY_SIZE(ds2760_battery_props); 363 + di->bat.get_property = ds2760_battery_get_property; 364 364 di->bat.external_power_changed = 365 365 ds2760_battery_external_power_changed; 366 366