OSDN Git Service

i2c: Drop I2C_SLAVE_FROM_QDEV() macro
authorAndreas Färber <afaerber@suse.de>
Fri, 25 Jan 2013 08:12:54 +0000 (09:12 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 Feb 2013 16:43:24 +0000 (10:43 -0600)
commit8aae84a1f2ad256d222c97411af17013b1c35799
tree08f3334771ca7c562563360fae89498e6c462d89
parent6c8fec8372147a561f5b721d3a5180b73d7ce4cb
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>
hw/ds1338.c
hw/i2c.c
hw/i2c.h
hw/lm832x.c
hw/max7310.c
hw/pxa2xx.c
hw/wm8750.c