Re: [PATCH] iio: light: bh1750: simplify setting PM ops

2018-09-08 Thread Jonathan Cameron
On Sun, 2 Sep 2018 15:29:23 +0200 Tomasz Duszynski wrote: > Relying on CONFIG_PM_SLEEP to set PM ops is not necessary > since core will handle everything internally. One have to only make sure > that functions that can go unused are marked with __maybe_unused. > > Signed-off-by: Tomasz

Re: [PATCH] iio: light: bh1750: simplify setting PM ops

2018-09-08 Thread Jonathan Cameron
On Sun, 2 Sep 2018 15:29:23 +0200 Tomasz Duszynski wrote: > Relying on CONFIG_PM_SLEEP to set PM ops is not necessary > since core will handle everything internally. One have to only make sure > that functions that can go unused are marked with __maybe_unused. > > Signed-off-by: Tomasz

[PATCH] iio: light: bh1750: simplify setting PM ops

2018-09-02 Thread Tomasz Duszynski
Relying on CONFIG_PM_SLEEP to set PM ops is not necessary since core will handle everything internally. One have to only make sure that functions that can go unused are marked with __maybe_unused. Signed-off-by: Tomasz Duszynski --- drivers/iio/light/bh1750.c | 9 ++--- 1 file changed, 2

[PATCH] iio: light: bh1750: simplify setting PM ops

2018-09-02 Thread Tomasz Duszynski
Relying on CONFIG_PM_SLEEP to set PM ops is not necessary since core will handle everything internally. One have to only make sure that functions that can go unused are marked with __maybe_unused. Signed-off-by: Tomasz Duszynski --- drivers/iio/light/bh1750.c | 9 ++--- 1 file changed, 2