[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251204120036.GC1613537@black.igk.intel.com>
Date: Thu, 4 Dec 2025 13:00:36 +0100
From: Mika Westerberg <mika.westerberg@...ux.intel.com>
To: Artem Shimko <a.shimko.dev@...il.com>
Cc: andi.shyti@...nel.org, andriy.shevchenko@...ux.intel.com,
jsd@...ihalf.com, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] i2c: designware: Replace magic numbers with named
constants
On Thu, Dec 04, 2025 at 02:41:29PM +0300, Artem Shimko wrote:
> Replace various magic numbers with properly named constants to improve
> code readability and maintainability. This includes constants for
> register access, timing adjustments, timeouts, FIFO parameters,
> and default values.
>
> The change makes the code more self-documenting without altering any
> functionality.
>
> Signed-off-by: Artem Shimko <a.shimko.dev@...il.com>
> ---
>
> Hello maintainers and reviewers,
>
> Fix replaces magic numbers throughout the DesignWare I2C driver with named
> constants to improve code readability and maintainability.
>
> The change introduces constants for register access, timing adjustments,
> timeouts, FIFO parameters, and default values, all properly documented
> with comments.
>
> No functional changes.
There is already v3 at least of this patch. What changed?
Also can you please send new versions on a new thread instead of replying
on the existing one? It is really hard to follow.
Powered by blists - more mailing lists