OSDN Git Service

platform/x86/amd/pmf: pass the struct by reference
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Tue, 4 Oct 2022 08:10:19 +0000 (13:10 +0500)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Nov 2022 07:48:18 +0000 (08:48 +0100)
commit19c8b5241425948daeb0f91fe7a07cf1a4b76239
tree8edb1828642e9414144f4aba57b7120f8579bd2f
parentb44fd994e45112b58b6c1dec4451d9a925784589
platform/x86/amd/pmf: pass the struct by reference

The out structure should be passed by reference instead of passing by
value. This saves the extra copy of the structure.

Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/r/20221004081019.619193-1-usama.anjum@collabora.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/cnqf.c