]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: accel: kxcjk-1013: Switch from CONFIG_PM guards to pm_ptr() etc
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 24 Oct 2024 19:04:57 +0000 (22:04 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 28 Oct 2024 20:04:11 +0000 (20:04 +0000)
commit08cc11c6677404d3270235251ae9ad0fa59c249c
tree17bc41fefa8011af03fc67c586d7306aa541741e
parentb01b559682f3d651763e1b1df0368a317b2e4f5d
iio: accel: kxcjk-1013: Switch from CONFIG_PM guards to pm_ptr() etc

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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241024191200.229894-9-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kxcjk-1013.c