static int wm831x_spi_suspend(struct spi_device *spi, pm_message_t m) { struct wm831x *wm831x = dev_get_drvdata(&spi->dev); return wm831x_device_suspend(wm831x); }
static int wm831x_spi_suspend(struct device *dev) { struct wm831x *wm831x = dev_get_drvdata(dev); return wm831x_device_suspend(wm831x); }
static int wm831x_i2c_suspend(struct i2c_client *i2c, pm_message_t mesg) { struct wm831x *wm831x = i2c_get_clientdata(i2c); return wm831x_device_suspend(wm831x); }