"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drivers/power/max8998_charger.c" between
linux-3.16.62.tar.xz and linux-3.16.63.tar.xz

About: The full source of the Linux kernel 3.16.x (longterm stable)

max8998_charger.c  (linux-3.16.62.tar.xz):max8998_charger.c  (linux-3.16.63.tar.xz)
skipping to change at line 81 skipping to change at line 81
default: default:
return -EINVAL; return -EINVAL;
} }
return 0; return 0;
} }
static int max8998_battery_probe(struct platform_device *pdev) static int max8998_battery_probe(struct platform_device *pdev)
{ {
struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent); struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent);
struct max8998_platform_data *pdata = dev_get_platdata(iodev->dev); struct max8998_platform_data *pdata = iodev->pdata;
struct max8998_battery_data *max8998; struct max8998_battery_data *max8998;
struct i2c_client *i2c; struct i2c_client *i2c;
int ret = 0; int ret = 0;
if (!pdata) { if (!pdata) {
dev_err(pdev->dev.parent, "No platform init data supplied\n"); dev_err(pdev->dev.parent, "No platform init data supplied\n");
return -ENODEV; return -ENODEV;
} }
max8998 = devm_kzalloc(&pdev->dev, sizeof(struct max8998_battery_data), max8998 = devm_kzalloc(&pdev->dev, sizeof(struct max8998_battery_data),
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)