]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Rename sja1105_spi_send_packed_buf to sja1105_xfer_buf
authorVladimir Oltean <olteanv@gmail.com>
Tue, 1 Oct 2019 19:18:01 +0000 (22:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 16:25:11 +0000 (12:25 -0400)
commitf114295f219ff4a275ed5d81a03f95ec24e55b98
tree7b535a0bfc053ddb886adb526b59a2274053545d
parentd13cb83f28ccbd84a2c83298289ba9686ff90169
net: dsa: sja1105: Rename sja1105_spi_send_packed_buf to sja1105_xfer_buf

The most commonly called function in the driver is long due for a
rename. The "packed" word is redundant (it doesn't make sense to
transfer an unpacked structure, since that is in CPU endianness yadda
yadda), and the "spi" word is also redundant since argument 2 of the
function is SPI_READ or SPI_WRITE.

As for the sja1105_spi_send_long_packed_buf function, it is only being
used from sja1105_spi.c, so remove its global prototype.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_clocking.c
drivers/net/dsa/sja1105/sja1105_dynamic_config.c
drivers/net/dsa/sja1105/sja1105_ethtool.c
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/dsa/sja1105/sja1105_ptp.c
drivers/net/dsa/sja1105/sja1105_spi.c