staging: fieldbus: anybus-s: keep device bus id in bus endianness
authorSven Van Asbroeck <thesven73@gmail.com>
Tue, 30 Apr 2019 15:25:14 +0000 (11:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Apr 2019 15:40:34 +0000 (17:40 +0200)
commitbe7d6b03602eb0d3dccae0bbce4c796526c51661
tree582cacc61eff89e6541d479d977c22b796061df9
parentd5d66cfea2ca281d53e63360b459f84b5fff5e12
staging: fieldbus: anybus-s: keep device bus id in bus endianness

"Normal" bus structures such as USB or PCI keep device bus ids
in bus endinanness, and driver bus ids in host endianness.
Endianness conversion happens each time bus_match() is called.

Modify anybus-s to conform to this pattern. As a pleasant side-
effect, sparse warnings will now disappear.

This was suggested by Al Viro.

Link: https://lkml.org/lkml/2019/4/30/834
Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fieldbus/anybuss/anybuss-client.h
drivers/staging/fieldbus/anybuss/host.c