virtio: sandbox: Fix device features bitfield
authorAndrew Scull <ascull@google.com>
Mon, 16 May 2022 10:41:34 +0000 (10:41 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 13:24:03 +0000 (09:24 -0400)
commit1674b6c4d820a4139c406d673a3319f785503a5d
treeca096f3c7b02a83ca336e2a2e17e13499552c83f
parentb1fe820b63c45d6ed0c44b67b4a48e5f3ac34bf0
virtio: sandbox: Fix device features bitfield

The virtio sandbox transport was setting the device features value to
the bit index rather than shifting a bit to the right index. Fix this
using the bit manipulation macros.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/virtio/virtio_sandbox.c
test/dm/virtio.c