Skip to content

hw/i2c: Rename TYPE_VERSATILE_I2C -> TYPE_ARM_SBCON_I2C

Philippe Mathieu-Daudé qemu-arm qemu-devel 2 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v15 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Updated MAINTAINERS
- Picked R-b tags

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5hw/i2c/versatile_i2c: Drop useless casts from void * to pointerhw/i2c/versatile_i2c.c+2 -20 replies
2/5hw/i2c/versatile_i2c: Replace VersatileI2CState -> ArmSbconI2CStatehw/i2c/versatile_i2c.c include/hw/i2c/arm_sbcon_i2c.h+6 -70 replies
3/5hw/i2c/versatile_i2c: Replace TYPE_VERSATILE_I2C -> TYPE_ARM_SBCON_I2Chw/arm/realview.c hw/arm/versatilepb.c hw/arm/vexpress.c +2 more+6 -70 replies
4/5hw/i2c/versatile_i2c: Use ARM_SBCON_I2C() macrohw/i2c/versatile_i2c.c+1 -60 replies
5/5hw/i2c/versatile_i2c: Rename versatile_i2c -> arm_sbcon_i2cMAINTAINERS hw/arm/Kconfig hw/i2c/Kconfig +2 more+17 -160 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] hw/i2c: Rename TYPE_VERSATILE_I2C -> TYPE_ARM_SBCON_I2C

Series fully reviewed.

Since v1:
- Updated MAINTAINERS
- Picked R-b tags

---

Lot of churn for what started as a QOM cleanup. We have:

typedef ArmSbconI2CState VersatileI2CState; // [*] DECLARE_INSTANCE_CHECKER(VersatileI2CState, VERSATILE_I2C,
TYPE_VERSATILE_I2C)

typedef struct ArmSbconI2CState ArmSbconI2CState; DECLARE_INSTANCE_CHECKER(ArmSbconI2CState, ARM_SBCON_I2C,

                           TYPE_ARM_SBCON_I2C)

In a later QOM rework series, [*] produces definitions clash. The simplest fix is to avoid having different types defining the same QOM model.

This model started named TYPE_VERSATILE_I2C then we figured the official ARM name (did it came later?), and renamed as TYPE_ARM_SBCON_I2C. Finish the conversion, remove VERSATILE_I2C name and only refer to this model as ARM_SBCON_I2C.

Philippe Mathieu-Daudé (5):
hw/i2c/versatile_i2c: Drop useless casts from void * to pointer hw/i2c/versatile_i2c: Replace VersatileI2CState -> ArmSbconI2CState hw/i2c/versatile_i2c: Replace TYPE_VERSATILE_I2C -> TYPE_ARM_SBCON_I2C hw/i2c/versatile_i2c: Use ARM_SBCON_I2C() macro hw/i2c/versatile_i2c: Rename versatile_i2c -> arm_sbcon_i2c

 MAINTAINERS                                 |  1 +
 hw/arm/Kconfig                              |  4 +--
 hw/arm/realview.c                           |  2 +-
 hw/arm/versatilepb.c                        |  2 +-
 hw/arm/vexpress.c                           |  2 +-
 hw/i2c/Kconfig                              |  2 +-
 hw/i2c/{versatile_i2c.c => arm_sbcon_i2c.c} | 39 +++++++++------------
 hw/i2c/meson.build                          |  2 +-
 include/hw/i2c/arm_sbcon_i2c.h              |  6 ++--
 9 files changed, 27 insertions(+), 33 deletions(-)
 rename hw/i2c/{versatile_i2c.c => arm_sbcon_i2c.c} (70%)
Signature · 1 line
2.38.1