}
#ifdef CONFIG_HAS_EARLYSUSPEND
-void wm831x_pmu_early_suspend(struct regulator_dev *rdev)
+void wm831x_pmu_early_suspend(struct early_suspend *h)
{
struct regulator *dcdc;
struct regulator *ldo;
udelay(100);
}
-void wm831x_pmu_early_resume(struct regulator_dev *rdev)
+void wm831x_pmu_early_resume(struct early_suspend *h)
{
struct regulator *dcdc;
struct regulator *ldo;
}
#ifdef CONFIG_HAS_EARLYSUSPEND
-void wm831x_pmu_early_suspend(struct regulator_dev *rdev)
+void wm831x_pmu_early_suspend(struct early_suspend *h)
{
struct regulator *dcdc;
struct regulator *ldo;
udelay(100);
}
-void wm831x_pmu_early_resume(struct regulator_dev *rdev)
+void wm831x_pmu_early_resume(struct early_suspend *h)
{
struct regulator *dcdc;
struct regulator *ldo;
* Instantiate the generic non-control parts of the device.
*/
-__weak void wm831x_pmu_early_suspend(struct regulator_dev *rdev) {}
-__weak void wm831x_pmu_early_resume(struct regulator_dev *rdev) {}
+__weak void wm831x_pmu_early_suspend(struct early_suspend *h) {}
+__weak void wm831x_pmu_early_resume(struct early_suspend *h) {}
int wm831x_device_init(struct wm831x *wm831x, unsigned long id, int irq)
{
msgs[0].len = 1;
msgs[0].scl_rate = 200*1000;
- msgs[1].buf = dest;
+ msgs[1].buf = (u8 *)dest;
msgs[1].addr = i2c->addr;
msgs[1].flags = i2c->flags | I2C_M_RD;
msgs[1].len = 1;