Re: [PATCH v2] staging: iio: adt7316: modernize power management

From: Andy Shevchenko
Date: Mon Jan 05 2026 - 11:35:23 EST


On Sun, Jan 04, 2026 at 10:08:03PM -0800, Michael Harris wrote:
> Replaced use of deprecated function SIMPLE_DEV_PM_OPS with

SIMPLE_DEV_PM_OPS()

> EXPORT_GPL_SIMPLE_DEV_PM_OPS.

EXPORT_GPL_SIMPLE_DEV_PM_OPS().

> Removed PM preprocessor conditions with usage of pm_sleep_ptr function.

First of all, pm_sleep_ptr() is a macro. Second, refer to it just like other
functions, i.e. pm_sleep_ptr().

...

Code wise it LGTM, thanks.

--
With Best Regards,
Andy Shevchenko