diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-09 23:47:35 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-25 17:00:41 +0200 |
| commit | 12d1a768bdfea6e27a3a829228840d72507613a1 (patch) | |
| tree | 1293456896e507c4dcb859197ccafa0719aa7f65 /hw/i2c/i2c_mux_pca954x.c | |
| parent | f1fa787b92c52d1034de164d2a26771ff969454e (diff) | |
| download | focaccia-qemu-12d1a768bdfea6e27a3a829228840d72507613a1.tar.gz focaccia-qemu-12d1a768bdfea6e27a3a829228840d72507613a1.zip | |
qom: Have class_init() take a const data argument
Mechanical change using gsed, then style manually adapted to pass checkpatch.pl script. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250424194905.82506-4-philmd@linaro.org>
Diffstat (limited to 'hw/i2c/i2c_mux_pca954x.c')
| -rw-r--r-- | hw/i2c/i2c_mux_pca954x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/i2c/i2c_mux_pca954x.c b/hw/i2c/i2c_mux_pca954x.c index 779cc4e66e..a8ef640cd2 100644 --- a/hw/i2c/i2c_mux_pca954x.c +++ b/hw/i2c/i2c_mux_pca954x.c @@ -172,13 +172,13 @@ I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel) return pca954x->bus[channel]; } -static void pca9546_class_init(ObjectClass *klass, void *data) +static void pca9546_class_init(ObjectClass *klass, const void *data) { Pca954xClass *s = PCA954X_CLASS(klass); s->nchans = PCA9546_CHANNEL_COUNT; } -static void pca9548_class_init(ObjectClass *klass, void *data) +static void pca9548_class_init(ObjectClass *klass, const void *data) { Pca954xClass *s = PCA954X_CLASS(klass); s->nchans = PCA9548_CHANNEL_COUNT; @@ -215,7 +215,7 @@ static const Property pca954x_props[] = { DEFINE_PROP_STRING("name", Pca954xState, name), }; -static void pca954x_class_init(ObjectClass *klass, void *data) +static void pca954x_class_init(ObjectClass *klass, const void *data) { I2CSlaveClass *sc = I2C_SLAVE_CLASS(klass); ResettableClass *rc = RESETTABLE_CLASS(klass); |