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 04/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP
    Date
    SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG.

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

    diff --git a/drivers/iio/accel/mc3230.c b/drivers/iio/accel/mc3230.c
    index 46e4283fc037..b966922b9899 100644
    --- a/drivers/iio/accel/mc3230.c
    +++ b/drivers/iio/accel/mc3230.c
    @@ -160,7 +160,6 @@ static int mc3230_remove(struct i2c_client *client)
    return mc3230_set_opcon(iio_priv(indio_dev), MC3230_MODE_OPCON_STANDBY);
    }

    -#ifdef CONFIG_PM_SLEEP
    static int mc3230_suspend(struct device *dev)
    {
    struct mc3230_data *data;
    @@ -178,7 +177,6 @@ static int mc3230_resume(struct device *dev)

    return mc3230_set_opcon(data, MC3230_MODE_OPCON_WAKE);
    }
    -#endif

    static SIMPLE_DEV_PM_OPS(mc3230_pm_ops, mc3230_suspend, mc3230_resume);

    --
    2.28.0
    \
     
     \ /
      Last update: 2020-10-29 08:50    [W:2.673 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site