s390x/event-facility: Simplify sclp_get_event_facility_bus()
sclp_get_event_facility_bus() scans the whole machine to find a TYPE_SCLP_EVENTS_BUS object. The SCLPDevice instance is now available under the machine state, use it to simplify the lookup and adjust the creation of the consoles. Signed-off-by: Cédric Le Goater <clg@redhat.com> Message-ID: <20240502131533.377719-3-clg@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
b350f6c8ed
commit
af4a3e32f3
3 changed files with 10 additions and 17 deletions
|
|
@ -203,6 +203,6 @@ struct SCLPEventFacilityClass {
|
|||
bool (*event_pending)(SCLPEventFacility *ef);
|
||||
};
|
||||
|
||||
BusState *sclp_get_event_facility_bus(void);
|
||||
BusState *sclp_get_event_facility_bus(SCLPEventFacility *ef);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue