]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-input: generalize virtio_input_key_config()
authorSergio Lopez <slp@redhat.com>
Fri, 26 May 2023 11:29:20 +0000 (13:29 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 28 May 2023 09:08:25 +0000 (13:08 +0400)
commit944ae6d9f17c3c6609f8d0832311b7a050d6c4b6
tree572df01f8b59c42c0e8e41a60a6bd1d8286375ed
parent4c93ce54e7114aae33100d2ee4f2b36e451a1d06
virtio-input: generalize virtio_input_key_config()

As there are other bitmap-based config properties that need to be dealt in a
similar fashion as VIRTIO_INPUT_CFG_EV_BITS, generalize the function to
receive select and subsel as arguments, and rename it to
virtio_input_extend_config()

Signed-off-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230526112925.38794-2-slp@redhat.com>
hw/input/virtio-input-hid.c