net: dsa: ar9331: Use explict flags for regmap single read/write
authorMark Brown <broonie@kernel.org>
Wed, 12 Jul 2023 11:16:16 +0000 (12:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 07:34:24 +0000 (08:34 +0100)
commit9845217d60d01d151b45842ef2017a65e8f39f5a
treef30005fcaec76ec03ce6449488256a2ced75f04f
parent5e1627cb43ddf1b24b92eb26f8d958a3f5676ccb
net: dsa: ar9331: Use explict flags for regmap single read/write

The at9331 is only able to read or write a single register at once.  The
driver has a custom regmap bus and chooses to tell the regmap core about
this by reporting the maximum transfer sizes rather than the explicit
flags that exist at the regmap level.  Since there are a number of
problems with the raw transfer limits and the regmap level flags are
better integrated anyway convert the driver to use the flags.

No functional change.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca/ar9331.c