hw/ssi: Rename SSI 'slave' as 'peripheral'
commitec7e429bd250ecfb6528e27eec58ea9ee47cd95d
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 12 Oct 2020 12:49:55 +0000 (12 14:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Dec 2020 17:15:03 +0000 (10 12:15 -0500)
tree7065fcde4fc6ee96dd7ec2393fcc4093d60780f4
parent9ce89a22aed41e8486dddb27fbeea9f182b90516
hw/ssi: Rename SSI 'slave' as 'peripheral'

In order to use inclusive terminology, rename SSI 'slave' as
'peripheral', following the specification resolution:
https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names/

Patch created mechanically using:

  $ sed -i s/SSISlave/SSIPeripheral/ $(git grep -l SSISlave)
  $ sed -i s/SSI_SLAVE/SSI_PERIPHERAL/ $(git grep -l SSI_SLAVE)
  $ sed -i s/ssi-slave/ssi-peripheral/ $(git grep -l ssi-slave)
  $ sed -i s/ssi_slave/ssi_peripheral/ $(git grep -l ssi_slave)
  $ sed -i s/ssi_create_slave/ssi_create_peripheral/ \
                                $(git grep -l ssi_create_slave)

Then in VMStateDescription vmstate_ssi_peripheral we restored
the "SSISlave" migration stream name (to avoid breaking migration).

Finally the following files have been manually tweaked:
 - hw/ssi/pl022.c
 - hw/ssi/xilinx_spips.c

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201012124955.3409127-4-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
14 files changed:
hw/arm/spitz.c
hw/arm/stellaris.c
hw/arm/tosa.c
hw/arm/z2.c
hw/block/m25p80.c
hw/display/ads7846.c
hw/display/ssd0323.c
hw/misc/max111x.c
hw/sd/ssi-sd.c
hw/ssi/pl022.c
hw/ssi/ssi.c
hw/ssi/xilinx_spips.c
include/hw/misc/max111x.h
include/hw/ssi/ssi.h