[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20221202212819.6e601b99@kernel.org>
Date: Fri, 2 Dec 2022 21:28:19 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc: Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>
Subject: Re: [PATCH net-next] net: sfp: clean up i2c-bus property parsing
On Fri, 02 Dec 2022 10:20:52 +0000 Russell King (Oracle) wrote:
> We currently have some complicated code in sfp_probe() which gets the
> I2C bus depending on whether the sfp node is DT or ACPI, and we use
> completely separate lookup functions.
>
> This could do with being in a separate function to make the code more
> readable, so move it to a new function, sfp_i2c_get(). We can also use
> fwnode_find_reference() to lookup the I2C bus fwnode before then
> decending into fwnode-type specific parsing.
>
> A future cleanup would be to move the fwnode-type specific parsing into
> the i2c layer, which is where it really should be.
drivers/net/phy/sfp.c:2660:36: error: use of undeclared identifier 'args'
acpi_handle = ACPI_HANDLE_FWNODE(args.fwnode);
^
Powered by blists - more mailing lists