AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Hung <alex.hung@amd.com>
To: Mario Limonciello <mario.limonciello@amd.com>,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2 1/5] drm/amd: Copy entire structure in amdgpu_acpi_get_backlight_caps()
Date: Mon, 3 Mar 2025 08:03:40 -0700	[thread overview]
Message-ID: <e471ec60-21cc-412a-b4ce-b6d32d87f524@amd.com> (raw)
In-Reply-To: <20250228185145.186319-2-mario.limonciello@amd.com>

Reviewed-by: Alex Hung <alex.hung@amd.com>

On 2/28/25 11:51, Mario Limonciello wrote:
> As new members are introduced to the structure copying the entire
> structure will help avoid missing them.
> 
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 6 +-----
>   1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> index b8d4e07d2043..515c6f32448d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> @@ -1277,11 +1277,7 @@ void amdgpu_acpi_get_backlight_caps(struct amdgpu_dm_backlight_caps *caps)
>   {
>   	struct amdgpu_atif *atif = &amdgpu_acpi_priv.atif;
>   
> -	caps->caps_valid = atif->backlight_caps.caps_valid;
> -	caps->min_input_signal = atif->backlight_caps.min_input_signal;
> -	caps->max_input_signal = atif->backlight_caps.max_input_signal;
> -	caps->ac_level = atif->backlight_caps.ac_level;
> -	caps->dc_level = atif->backlight_caps.dc_level;
> +	memcpy(caps, &atif->backlight_caps, sizeof(*caps));
>   }
>   
>   /**


  reply	other threads:[~2025-03-03 15:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-28 18:51 [PATCH v2 0/5] Add custom brightness curve support Mario Limonciello
2025-02-28 18:51 ` [PATCH v2 1/5] drm/amd: Copy entire structure in amdgpu_acpi_get_backlight_caps() Mario Limonciello
2025-03-03 15:03   ` Alex Hung [this message]
2025-02-28 18:51 ` [PATCH v2 2/5] drm/amd: Pass luminance data to amdgpu_dm_backlight_caps Mario Limonciello
2025-02-28 22:04   ` Alex Hung
2025-02-28 18:51 ` [PATCH v2 3/5] drm/amd/display: Avoid operating on copies of backlight caps Mario Limonciello
2025-02-28 22:04   ` Alex Hung
2025-02-28 18:51 ` [PATCH v2 4/5] drm/amd/display: Add support for custom brightness curve Mario Limonciello
2025-02-28 22:04   ` Alex Hung
2025-02-28 18:51 ` [PATCH v2 5/5] drm/amd/display: Add a new dcdebugmask to allow turning off " Mario Limonciello
2025-02-28 22:04   ` Alex Hung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e471ec60-21cc-412a-b4ce-b6d32d87f524@amd.com \
    --to=alex.hung@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=mario.limonciello@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox