| commit | 10240452420c8b0c8d37ceee39bab44df21082dc | [log] [tgz] |
|---|---|---|
| author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Nov 21 18:55:16 2021 +0000 |
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Tue Nov 23 19:13:02 2021 +0000 |
| tree | be4127e055cf472c012882212103b9d1d262f27f | |
| parent | 7eeafb5485c96b0501318ad33f84d8302cf1102b [diff] |
iio:chemical:atlas: Switch from CONFIG_PM guards to pm_ptr() / __maybe_unused Letting the compiler remove these functions when the kernel is built without CONFIG_PM support is simpler and less error prone than the use of #ifdef based config guards. Removing instances of this approach from IIO also stops them being copied into new drivers. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Matt Ranostay <matt.ranostay@konsulko.com>