From: Laurent Pinchart Date: Tue, 22 Dec 2015 01:00:36 +0000 (+0200) Subject: greybus: es2: Fix endian conversion issues X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e715a54f4b3fa7d46802984833dc918e44b608e5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: es2: Fix endian conversion issues Convert all USB request fields between CPU and protocol endianness. Signed-off-by: Laurent Pinchart Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 334ed06b8900..5a991c0c4924 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;