aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/as102/as10x_cmd_cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/usb/as102/as10x_cmd_cfg.c')
-rw-r--r--drivers/media/usb/as102/as10x_cmd_cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/as102/as10x_cmd_cfg.c b/drivers/media/usb/as102/as10x_cmd_cfg.c
index 6f9dea1d860b..c87f2ca223a2 100644
--- a/drivers/media/usb/as102/as10x_cmd_cfg.c
+++ b/drivers/media/usb/as102/as10x_cmd_cfg.c
@@ -69,7 +69,7 @@ int as10x_cmd_get_context(struct as10x_bus_adapter_t *adap, uint16_t tag,
69 69
70 if (error == 0) { 70 if (error == 0) {
71 /* Response OK -> get response data */ 71 /* Response OK -> get response data */
72 *pvalue = le32_to_cpu(prsp->body.context.rsp.reg_val.u.value32); 72 *pvalue = le32_to_cpu((__force __le32)prsp->body.context.rsp.reg_val.u.value32);
73 /* value returned is always a 32-bit value */ 73 /* value returned is always a 32-bit value */
74 } 74 }
75 75
@@ -101,7 +101,7 @@ int as10x_cmd_set_context(struct as10x_bus_adapter_t *adap, uint16_t tag,
101 /* fill command */ 101 /* fill command */
102 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); 102 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT);
103 /* pcmd->body.context.req.reg_val.mode initialization is not required */ 103 /* pcmd->body.context.req.reg_val.mode initialization is not required */
104 pcmd->body.context.req.reg_val.u.value32 = cpu_to_le32(value); 104 pcmd->body.context.req.reg_val.u.value32 = (__force u32)cpu_to_le32(value);
105 pcmd->body.context.req.tag = cpu_to_le16(tag); 105 pcmd->body.context.req.tag = cpu_to_le16(tag);
106 pcmd->body.context.req.type = cpu_to_le16(SET_CONTEXT_DATA); 106 pcmd->body.context.req.type = cpu_to_le16(SET_CONTEXT_DATA);
107 107