qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/7] arm/virt: place power button pin number on a define


From: Jonathan Cameron
Subject: Re: [PATCH v2 1/7] arm/virt: place power button pin number on a define
Date: Wed, 17 Jul 2024 16:34:42 +0100

On Fri, 12 Jul 2024 15:15:08 +0200
Mauro Carvalho Chehab <mchehab+huawei@kernel.org> wrote:

> Having magic numbers inside the code is not a good idea, as it
> is error-prone. So, instead, create a macro with the number
> definition.
> 
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

Seems sensible to me.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]