On Tue, Sep 03, 2024 at 08:13:58PM +0800, Jijie Shao wrote:
on 2024/9/3 19:59, Paolo Abeni wrote:Put them at the top of the .c file. That is pretty much standard in C.
On 8/30/24 14:15, Jijie Shao wrote:These two macros are only used in this function.
[...]
+static int hbg_mdio_wait_ready(struct hbg_mac *mac)Minor nit: I find the define inside the function body less readable than
+{
+#define HBG_MDIO_OP_TIMEOUT_US (1 * 1000 * 1000)
+#define HBG_MDIO_OP_INTERVAL_US (5 * 1000)
placing them just before the function itself.
Is it necessary to move them to the header file?
Andrew