There is no call to i2c_get_clientdata(), platform_get_drvdata(),
or dev_get_drvdata() in any of the drivers in this patch.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
if (!touch)
return -ENOMEM;
- platform_set_drvdata(pdev, touch);
-
touch->idev = devm_input_allocate_device(&pdev->dev);
if (!touch->idev) {
dev_err(&pdev->dev, "Failed to allocate input device!\n");
return ret;
}
- platform_set_drvdata(pdev, touch);
return 0;
}
return -ENOMEM;
}
- platform_set_drvdata(pdev, touchdev);
-
input->name = DRIVER_NAME;
input->id.bustype = BUS_HOST;
input->dev.parent = dev;
if (error)
return error;
- i2c_set_clientdata(client, ts);
return 0;
}
if (error)
return error;
- i2c_set_clientdata(client, data);
return 0;
}
if (error)
return error;
- i2c_set_clientdata(client, sx8654);
return 0;
}