mirror of https://github.com/xemu-project/xemu.git
hw/qdev-clock: Uninline qdev_connect_clock_in()
We want to assert the device is not realized. To avoid overloading this header including "hw/qdev-core.h", uninline the function first. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20200803105647.22223-4-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
3ab9287895
commit
f129360ca1
|
@ -183,3 +183,8 @@ Clock *qdev_alias_clock(DeviceState *dev, const char *name,
|
||||||
|
|
||||||
return ncl->clock;
|
return ncl->clock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void qdev_connect_clock_in(DeviceState *dev, const char *name, Clock *source)
|
||||||
|
{
|
||||||
|
clock_set_source(qdev_get_clock_in(dev, name), source);
|
||||||
|
}
|
||||||
|
|
|
@ -71,11 +71,7 @@ Clock *qdev_get_clock_out(DeviceState *dev, const char *name);
|
||||||
* Set the source clock of input clock @name of device @dev to @source.
|
* Set the source clock of input clock @name of device @dev to @source.
|
||||||
* @source period update will be propagated to @name clock.
|
* @source period update will be propagated to @name clock.
|
||||||
*/
|
*/
|
||||||
static inline void qdev_connect_clock_in(DeviceState *dev, const char *name,
|
void qdev_connect_clock_in(DeviceState *dev, const char *name, Clock *source);
|
||||||
Clock *source)
|
|
||||||
{
|
|
||||||
clock_set_source(qdev_get_clock_in(dev, name), source);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* qdev_alias_clock:
|
* qdev_alias_clock:
|
||||||
|
|
Loading…
Reference in New Issue