diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-12-22 03:00:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-12-21 18:22:43 -0800 |
commit | e715a54f4b3fa7d46802984833dc918e44b608e5 (patch) | |
tree | 04dc9b079ddad36762807059c842bfa2e4a55bbb /drivers/staging/greybus/es2.c | |
parent | 98ce3b0a71c23f924dd031d41171a96eee7fe313 (diff) | |
download | op-kernel-dev-e715a54f4b3fa7d46802984833dc918e44b608e5.zip op-kernel-dev-e715a54f4b3fa7d46802984833dc918e44b608e5.tar.gz |
greybus: es2: Fix endian conversion issues
Convert all USB request fields between CPU and protocol endianness.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/es2.c')
-rw-r--r-- | drivers/staging/greybus/es2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 334ed06..5a991c0 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -234,7 +234,7 @@ int es2_ap_csi_setup(struct gb_host_device *hd, bool start, cfg_req.clock_mode = cfg->clock_mode; cfg_req.num_lanes = cfg->num_lanes; cfg_req.padding = 0; - cfg_req.bus_freq = cfg->bus_freq; + cfg_req.bus_freq = cpu_to_le32(cfg->bus_freq); } else { cfg_req.clock_mode = 0; cfg_req.num_lanes = 0; |