Re: [PATCH v1] i2c: nvidia-gpu: drop empty stub for runtime pm

From: Jarkko Nikula
Date: Wed Nov 11 2020 - 06:46:51 EST


On 11/11/20 12:54 PM, Vaibhav Gupta wrote:
On Tue, Nov 10, 2020 at 02:33:43PM +0200, Jarkko Nikula wrote:
+#define gpu_i2c_suspend NULL
Perhaps we can put NULL directly into UNIVERSAL_DEV_PM_OPS() for the suspend
callback?

Yes. I have noticed that the approach for this is random. Many drivers pass
NULL directly to the dev_pm_ops type variable, and rest of them use a macro.

I used it for symmetry. I mean there is 'gpu_i2c_resume', so although a macro,
I have put a 'gpu_i2c_suspend'.

Although it won't make any significant change, but if required, I can send
another patch where NULL is passed into UNIVERSAL_DEV_PM_OPS() instead.

No need to resend from my side, it was just a remark and I gave already the reviewed-by tag.

Jarkko