lkml.org 
[lkml]   [2020]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/15] iio: imu: kmx61: remove unnecessary CONFIG_PM_SLEEP
    Date
    SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG.

    Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
    ---
    drivers/iio/imu/kmx61.c | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c
    index 61885e99d3fc..3b3d44ea8d24 100644
    --- a/drivers/iio/imu/kmx61.c
    +++ b/drivers/iio/imu/kmx61.c
    @@ -1448,7 +1448,6 @@ static int kmx61_remove(struct i2c_client *client)
    return 0;
    }

    -#ifdef CONFIG_PM_SLEEP
    static int kmx61_suspend(struct device *dev)
    {
    int ret;
    @@ -1474,7 +1473,6 @@ static int kmx61_resume(struct device *dev)

    return kmx61_set_mode(data, stby, KMX61_ACC | KMX61_MAG, true);
    }
    -#endif

    #ifdef CONFIG_PM
    static int kmx61_runtime_suspend(struct device *dev)
    --
    2.28.0
    \
     
     \ /
      Last update: 2020-10-29 09:06    [W:3.905 / U:0.616 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site