Re: [PATCH v5 net-next 02/13] net: mscc: ocelot: expose regfield definition to be used by other drivers

From: Florian Fainelli
Date: Fri Jan 27 2023 - 14:40:09 EST




On 1/27/2023 11:35 AM, Colin Foster wrote:
The ocelot_regfields struct is common between several different chips, some
of which can only be controlled externally. Export this structure so it
doesn't have to be duplicated in these other drivers.

Rename the structure as well, to follow the conventions of other shared
resources.

Signed-off-by: Colin Foster <colin.foster@xxxxxxxxxxxxxxxx>
Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian