usb-hub: add helpers to update port state
commit868a420393e1231be75d12a3d0df67f3c466a56a
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 24 May 2019 07:03:08 +0000 (24 09:03 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 29 May 2019 05:04:05 +0000 (29 07:04 +0200)
treeeaaa19d7ba5a59e460bd4a27598bcde79e42656a
parent9d84bb001c2c99aa1df3f32a529c1fa3e3afb39d
usb-hub: add helpers to update port state

Add usb_hub_port_set() and usb_hub_port_clear() helpers which care about
updating the change bits (port->wPortChange) properly, so we don't need
to have that logic sprinkled all over the place ;)

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20190524070310.4952-4-kraxel@redhat.com
hw/usb/dev-hub.c