mlxbf-tmfifo: sparse tags for config access
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 12 Jul 2020 14:56:34 +0000 (10:56 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 15:08:40 +0000 (11:08 -0400)
commit03bea764bf61c9f9918324bda7362616024386e8
treeb99c02d51f1f3d50c35c4669ad4c0ff0a5fd246e
parent4a04cfb0eb5e00432f9ff978f2b81bd1736e85db
mlxbf-tmfifo: sparse tags for config access

mlxbf-tmfifo accesses config space using native types -
which works for it since the legacy virtio native types.

This will break if it ever needs to support modern virtio,
so with new tags previously introduced for virtio net config,
sparse now warns for this in drivers.

Since this is a legacy only device, fix it up using
virtio_legacy_is_little_endian for now.

No functional changes.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/platform/mellanox/mlxbf-tmfifo.c