Following docs/devel/style.rst guidelines, rename icp_pit_state using CamelCase as IntegratorPIT (PIT is an acronym).
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org> Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> --- hw/timer/arm_timer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/timer/arm_timer.c b/hw/timer/arm_timer.c index 0e5d5d0f6d..c741e89cb4 100644 --- a/hw/timer/arm_timer.c +++ b/hw/timer/arm_timer.c @@ -327,9 +327,9 @@ static void sp804_class_init(ObjectClass *klass, void *data) /* Integrator/CP timer module. */ #define TYPE_INTEGRATOR_PIT "integrator_pit" -OBJECT_DECLARE_SIMPLE_TYPE(icp_pit_state, INTEGRATOR_PIT) +OBJECT_DECLARE_SIMPLE_TYPE(IntegratorPIT, INTEGRATOR_PIT) -struct icp_pit_state { +struct IntegratorPIT { SysBusDevice parent_obj; MemoryRegion iomem; @@ -339,7 +339,7 @@ struct icp_pit_state { static uint64_t icp_pit_read(void *opaque, hwaddr offset, unsigned size) { - icp_pit_state *s = opaque; + IntegratorPIT *s = opaque; int n; /* ??? Don't know the PrimeCell ID for this device. */ @@ -355,7 +355,7 @@ static uint64_t icp_pit_read(void *opaque, hwaddr offset, static void icp_pit_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - icp_pit_state *s = opaque; + IntegratorPIT *s = opaque; int n; n = offset >> 8; @@ -375,7 +375,7 @@ static const MemoryRegionOps icp_pit_ops = { static void icp_pit_init(Object *obj) { - icp_pit_state *s = INTEGRATOR_PIT(obj); + IntegratorPIT *s = INTEGRATOR_PIT(obj); SysBusDevice *dev = SYS_BUS_DEVICE(obj); /* Timer 0 runs at the system clock speed (40MHz). */ @@ -399,7 +399,7 @@ static const TypeInfo arm_timer_types[] = { { .name = TYPE_INTEGRATOR_PIT, .parent = TYPE_SYS_BUS_DEVICE, - .instance_size = sizeof(icp_pit_state), + .instance_size = sizeof(IntegratorPIT), .instance_init = icp_pit_init, }, { -- 2.38.1