[PATCH 7/7] drm/amd/display: Fix power_helpers.c codestyle

Alex Deucher alexdeucher at gmail.com
Wed Jan 3 14:40:25 UTC 2024


Applied.  Thanks!

On Fri, Dec 29, 2023 at 1:20 PM Marcelo Mendes Spessoto Junior
<marcelomspessoto at gmail.com> wrote:
>
> Place define macro expression inside () in power_helpers.c file
>
> Signed-off-by: Marcelo Mendes Spessoto Junior <marcelomspessoto at gmail.com>
> ---
>  drivers/gpu/drm/amd/display/modules/power/power_helpers.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c
> index 1675314a3..4e8af166e 100644
> --- a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c
> +++ b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c
> @@ -31,7 +31,7 @@
>
>  #define DIV_ROUNDUP(a, b) (((a)+((b)/2))/(b))
>  #define bswap16_based_on_endian(big_endian, value) \
> -       (big_endian) ? cpu_to_be16(value) : cpu_to_le16(value)
> +       ((big_endian) ? cpu_to_be16(value) : cpu_to_le16(value))
>
>  /* Possible Min Reduction config from least aggressive to most aggressive
>   *  0    1     2     3     4     5     6     7     8     9     10    11   12
> --
> 2.39.2
>


More information about the amd-gfx mailing list