Re: [PATCH v2 5/6] iio: accel: mma8452: use pm_ptr() for dev_pm_ops

Jonathan Cameron
2026-04-24T17:23:40Z

On Wed, 22 Apr 2026 22:38:14 +0300
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:

> On Wed, Apr 22, 2026 at 10:26:42PM +0530, Sanjay Chitroda wrote:
>
> > Use pm_ptr() and DEFINE_RUNTIME_DEV_PM_OPS() so the PM ops pointer is
> > automatically handle when CONFIG_PM is enabled/disabled. This follows
> > modern kernel power-management conventions.
>
> After this patch there are still CONFIG_PM ifdeffery left, why?
I replied on earlier patch to this.
Drop the wrapper function in favour of just having the pm_runtime_xx
calls inline.

That will also get rid of the ifdeffery.

J
>