mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
f1fa787b92
commit
12d1a768bd
1121 changed files with 1774 additions and 1707 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue