iio: light: bh1750: simplify setting PM ops
authorTomasz Duszynski <tduszyns@gmail.com>
Sun, 2 Sep 2018 13:29:23 +0000 (15:29 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Sep 2018 15:01:40 +0000 (16:01 +0100)
commitdaae7861a696b66acb3547c1cb9247cb3abaf0b3
tree0098b148073e0aaf0e89dfb2ad2a33ad06972ddf
parentc0f87b3335100108ce80cda3e09f11c3a82f081a
iio: light: bh1750: simplify setting PM ops

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 <tduszyns@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/bh1750.c