[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 11/14] omap-i2c: remove PROP_PTR
From: |
Peter Maydell |
Subject: |
Re: [PATCH 11/14] omap-i2c: remove PROP_PTR |
Date: |
Fri, 18 Oct 2019 17:56:36 +0100 |
On Fri, 18 Oct 2019 at 16:43, Marc-André Lureau
<address@hidden> wrote:
>
> Since clock are not QOM objects, replace PROP_PTR of clocks with
> setters methods.
>
> Signed-off-by: Marc-André Lureau <address@hidden>
> ---
> --- a/include/hw/arm/omap.h
> +++ b/include/hw/arm/omap.h
> @@ -77,6 +77,15 @@ typedef struct omap_intr_handler_s omap_intr_handler;
> void omap_intc_set_iclk(omap_intr_handler *intc, omap_clk clk);
> void omap_intc_set_fclk(omap_intr_handler *intc, omap_clk clk);
>
> +/* omap_i2c.c */
> +#define TYPE_OMAP_I2C "omap_i2c"
> +#define OMAP_I2C(obj) OBJECT_CHECK(OMAPI2CState, (obj), TYPE_OMAP_I2C)
> +
> +typedef struct OMAPI2CState OMAPI2CState;
> +
> +void omap_i2c_set_iclk(OMAPI2CState *i2c, omap_clk clk);
> +void omap_i2c_set_fclk(OMAPI2CState *i2c, omap_clk clk);
> +
With a similar TODO header comment (or perhaps this is close
enough to the one from the previous patch that it doesn't
need repeating)
Reviewed-by: Peter Maydell <address@hidden>
thanks
-- PMM
- Re: [PATCH 07/14] RFC: mips/cps: fix setting saar property, (continued)
- [PATCH 08/14] cris: replace PROP_PTR with PROP_LINK for interrupt vector, Marc-André Lureau, 2019/10/18
- [PATCH 09/14] smbus-eeprom: remove PROP_PTR, Marc-André Lureau, 2019/10/18
- [PATCH 10/14] omap-intc: remove PROP_PTR, Marc-André Lureau, 2019/10/18
- [PATCH 11/14] omap-i2c: remove PROP_PTR, Marc-André Lureau, 2019/10/18
- [PATCH 12/14] omap-gpio: remove PROP_PTR, Marc-André Lureau, 2019/10/18
- [PATCH 13/14] qdev: remove PROP_MEMORY_REGION, Marc-André Lureau, 2019/10/18
- [PATCH 14/14] Remove QDEV_PROP_PTR, Marc-André Lureau, 2019/10/18