mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw: Rename DeviceClass::reset field to legacy_reset
Rename the DeviceClass::reset field to legacy_reset; this is helpful both in flagging up that it's best not used in new code and in making it easy to search for where it's being used still. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20240830145812.1967042-9-peter.maydell@linaro.org
This commit is contained in:
parent
e3d0814368
commit
1000872dde
2 changed files with 6 additions and 6 deletions
|
@ -152,14 +152,14 @@ struct DeviceClass {
|
|||
|
||||
/* callbacks */
|
||||
/**
|
||||
* @reset: deprecated device reset method pointer
|
||||
* @legacy_reset: deprecated device reset method pointer
|
||||
*
|
||||
* Modern code should use the ResettableClass interface to
|
||||
* implement a multi-phase reset.
|
||||
*
|
||||
* TODO: remove once every reset callback is unused
|
||||
*/
|
||||
DeviceReset reset;
|
||||
DeviceReset legacy_reset;
|
||||
DeviceRealize realize;
|
||||
DeviceUnrealize unrealize;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue