aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7164
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/saa7164')
-rw-r--r--drivers/media/video/saa7164/saa7164-bus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/saa7164/saa7164-bus.c b/drivers/media/video/saa7164/saa7164-bus.c
index 466e1b02f91f..a7f58a998752 100644
--- a/drivers/media/video/saa7164/saa7164-bus.c
+++ b/drivers/media/video/saa7164/saa7164-bus.c
@@ -149,7 +149,7 @@ int saa7164_bus_set(struct saa7164_dev *dev, struct tmComResInfo* msg,
149 saa7164_bus_verify(dev); 149 saa7164_bus_verify(dev);
150 150
151 msg->size = cpu_to_le16(msg->size); 151 msg->size = cpu_to_le16(msg->size);
152 msg->command = cpu_to_le16(msg->command); 152 msg->command = cpu_to_le32(msg->command);
153 msg->controlselector = cpu_to_le16(msg->controlselector); 153 msg->controlselector = cpu_to_le16(msg->controlselector);
154 154
155 if (msg->size > dev->bus.m_wMaxReqSize) { 155 if (msg->size > dev->bus.m_wMaxReqSize) {
@@ -464,7 +464,7 @@ int saa7164_bus_get(struct saa7164_dev *dev, struct tmComResInfo* msg,
464 464
465peekout: 465peekout:
466 msg->size = le16_to_cpu(msg->size); 466 msg->size = le16_to_cpu(msg->size);
467 msg->command = le16_to_cpu(msg->command); 467 msg->command = le32_to_cpu(msg->command);
468 msg->controlselector = le16_to_cpu(msg->controlselector); 468 msg->controlselector = le16_to_cpu(msg->controlselector);
469 ret = SAA_OK; 469 ret = SAA_OK;
470out: 470out: