Home
last modified time | relevance | path

Searched hist:dc064f21ea80af2c372e2150f416de07f6461ac2 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/light/
H A Dal3010.cdiff dc064f21ea80af2c372e2150f416de07f6461ac2 Tue Jun 21 22:27:02 CEST 2022 Jonathan Cameron <Jonathan.Cameron@huawei.com> iio: light: al3010: 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: David Heidelberg <david@ixit.cz>
Reviewed-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20220621202719.13644-20-jic23@kernel.org