Re: [PATCH] iio: gyro: mpu3050-i2c: use pm_runtime_resume_and_get()
From: Andy Shevchenko
Date: Tue Feb 03 2026 - 06:14:53 EST
On Fri, Jan 30, 2026 at 05:32:26PM +0200, Antoniu Miclaus wrote:
> Use pm_runtime_resume_and_get() in bypass_select() and return its
> result directly. Unlike pm_runtime_get_sync(), it doesn't increment
> the refcount on failure.
...
> /* Just power up the device, that is all that is needed */
> - pm_runtime_get_sync(mpu3050->dev);
> - return 0;
> + return pm_runtime_resume_and_get(mpu3050->dev);
Will it also return positive values?
...
Same Q to the next change.
--
With Best Regards,
Andy Shevchenko