summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/bh1750.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-21 21:27:04 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-07-18 18:48:18 +0100
commitc422aa418a7ddd3bde04b2c0ad573c34aae53d35 (patch)
tree68acddfce9a6ce29394cad05bd7957ab71107660 /drivers/iio/light/bh1750.c
parentf3231f912bf478ced5628f808f8b6e0a1e1bd917 (diff)
downloadlinux-c422aa418a7ddd3bde04b2c0ad573c34aae53d35.tar.gz
linux-c422aa418a7ddd3bde04b2c0ad573c34aae53d35.tar.bz2
linux-c422aa418a7ddd3bde04b2c0ad573c34aae53d35.zip
iio: light: as73211: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
Using these newer macros allows the compiler to remove the unused structure and functions when !CONFIG_PM_SLEEP + removes the need to mark pm functions __maybe_unused. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Christian Eggers <ceggers@arri.de> Reviewed-by: Christian Eggers <ceggers@arri.de> Reviewed-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20220621202719.13644-22-jic23@kernel.org
Diffstat (limited to 'drivers/iio/light/bh1750.c')
0 files changed, 0 insertions, 0 deletions