Skip to content

Commit df1fad8

Browse files
Daniel Balutajic23
authored andcommitted
iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
After commit b2b49cc (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to depend on CONFIG_PM. Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under drivers/iio/imu/kmx61.c Signed-off-by: Daniel Baluta <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 0a01db9 commit df1fad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iio/imu/kmx61.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data,
747747
*/
748748
static int kmx61_set_power_state(struct kmx61_data *data, bool on, u8 device)
749749
{
750-
#ifdef CONFIG_PM_RUNTIME
750+
#ifdef CONFIG_PM
751751
int ret;
752752

753753
if (device & KMX61_ACC) {
@@ -1531,7 +1531,7 @@ static int kmx61_resume(struct device *dev)
15311531
}
15321532
#endif
15331533

1534-
#ifdef CONFIG_PM_RUNTIME
1534+
#ifdef CONFIG_PM
15351535
static int kmx61_runtime_suspend(struct device *dev)
15361536
{
15371537
struct kmx61_data *data = i2c_get_clientdata(to_i2c_client(dev));

0 commit comments

Comments
 (0)