iio kmx61 / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
After commit b2b49ccbdd
(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 <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
0a01db9d64
commit
df1fad80df
1 changed files with 2 additions and 2 deletions
|
@ -747,7 +747,7 @@ static int kmx61_setup_any_motion_interrupt(struct kmx61_data *data,
|
||||||
*/
|
*/
|
||||||
static int kmx61_set_power_state(struct kmx61_data *data, bool on, u8 device)
|
static int kmx61_set_power_state(struct kmx61_data *data, bool on, u8 device)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_PM_RUNTIME
|
#ifdef CONFIG_PM
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (device & KMX61_ACC) {
|
if (device & KMX61_ACC) {
|
||||||
|
@ -1531,7 +1531,7 @@ static int kmx61_resume(struct device *dev)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM_RUNTIME
|
#ifdef CONFIG_PM
|
||||||
static int kmx61_runtime_suspend(struct device *dev)
|
static int kmx61_runtime_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
struct kmx61_data *data = i2c_get_clientdata(to_i2c_client(dev));
|
struct kmx61_data *data = i2c_get_clientdata(to_i2c_client(dev));
|
||||||
|
|
Loading…
Add table
Reference in a new issue