aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/fieldbus/anybuss/anybuss-client.h
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2019-04-30 11:25:14 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-30 17:40:34 +0200
commitbe7d6b03602eb0d3dccae0bbce4c796526c51661 (patch)
tree582cacc61eff89e6541d479d977c22b796061df9 /drivers/staging/fieldbus/anybuss/anybuss-client.h
parentd5d66cfea2ca281d53e63360b459f84b5fff5e12 (diff)
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>
Diffstat (limited to 'drivers/staging/fieldbus/anybuss/anybuss-client.h')
-rw-r--r--drivers/staging/fieldbus/anybuss/anybuss-client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fieldbus/anybuss/anybuss-client.h b/drivers/staging/fieldbus/anybuss/anybuss-client.h
index 2e48fb8f0209..dce60f86c16f 100644
--- a/drivers/staging/fieldbus/anybuss/anybuss-client.h
+++ b/drivers/staging/fieldbus/anybuss/anybuss-client.h
@@ -17,7 +17,7 @@ struct anybuss_host;
struct anybuss_client {
struct device dev;
struct anybuss_host *host;
- u16 fieldbus_type;
+ __be16 fieldbus_type;
/*
* these can be optionally set by the client to receive event
* notifications from the host.