i2c: Drop I2C_SLAVE_FROM_QDEV() macro
It is not being used in hot paths and is obsoleted by I2C_SLAVE() QOM cast macro. Clean it up using a scripted conversion, so that it doesn't get used in new code. Some of its callers were combining it with FROM_I2C_SLAVE() macro, which is equally obsolete but needs to be replaced in a type-specific way. Signed-off-by:Andreas Färber <afaerber@suse.de> Cc: Kuo-Jung Su <dantesu@faraday-tech.com> Signed-off-by:
Anthony Liguori <aliguori@us.ibm.com>
Showing
- hw/ds1338.c 1 addition, 1 deletionhw/ds1338.c
- hw/i2c.c 2 additions, 2 deletionshw/i2c.c
- hw/i2c.h 0 additions, 1 deletionhw/i2c.h
- hw/lm832x.c 1 addition, 1 deletionhw/lm832x.c
- hw/max7310.c 1 addition, 1 deletionhw/max7310.c
- hw/pxa2xx.c 1 addition, 1 deletionhw/pxa2xx.c
- hw/wm8750.c 1 addition, 1 deletionhw/wm8750.c
Loading
Please register or sign in to comment