aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/bmg160.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/gyro/bmg160.c')
-rw-r--r--drivers/iio/gyro/bmg160.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/gyro/bmg160.c b/drivers/iio/gyro/bmg160.c
index d2fa526740ca..60451b328242 100644
--- a/drivers/iio/gyro/bmg160.c
+++ b/drivers/iio/gyro/bmg160.c
@@ -256,7 +256,7 @@ static int bmg160_chip_init(struct bmg160_data *data)
256 256
257static int bmg160_set_power_state(struct bmg160_data *data, bool on) 257static int bmg160_set_power_state(struct bmg160_data *data, bool on)
258{ 258{
259#ifdef CONFIG_PM_RUNTIME 259#ifdef CONFIG_PM
260 int ret; 260 int ret;
261 261
262 if (on) 262 if (on)
@@ -1202,7 +1202,7 @@ static int bmg160_resume(struct device *dev)
1202} 1202}
1203#endif 1203#endif
1204 1204
1205#ifdef CONFIG_PM_RUNTIME 1205#ifdef CONFIG_PM
1206static int bmg160_runtime_suspend(struct device *dev) 1206static int bmg160_runtime_suspend(struct device *dev)
1207{ 1207{
1208 struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); 1208 struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev));