diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-01-17 13:55:28 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-01-17 13:55:28 +0100 |
commit | 0c929238ca4baefe47f4034732db4c154f2329c6 (patch) | |
tree | 2636079800fa045501982a70e1be0425c1b968c2 /drivers/media/video/mt9v032.c | |
parent | video: pvr2fb: Fix up spurious section mismatch warnings. (diff) | |
parent | sh: fix the sh_mmcif_plat_data in board-sh7757lcr (diff) | |
download | linux-0c929238ca4baefe47f4034732db4c154f2329c6.tar.xz linux-0c929238ca4baefe47f4034732db4c154f2329c6.zip |
Merge branch 'sh/platform-updates' into sh-latest
Diffstat (limited to 'drivers/media/video/mt9v032.c')
-rw-r--r-- | drivers/media/video/mt9v032.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/mt9v032.c b/drivers/media/video/mt9v032.c index f080c162123f..d90b982cc218 100644 --- a/drivers/media/video/mt9v032.c +++ b/drivers/media/video/mt9v032.c @@ -139,10 +139,10 @@ static struct mt9v032 *to_mt9v032(struct v4l2_subdev *sd) static int mt9v032_read(struct i2c_client *client, const u8 reg) { - s32 data = i2c_smbus_read_word_data(client, reg); + s32 data = i2c_smbus_read_word_swapped(client, reg); dev_dbg(&client->dev, "%s: read 0x%04x from 0x%02x\n", __func__, - swab16(data), reg); - return data < 0 ? data : swab16(data); + data, reg); + return data; } static int mt9v032_write(struct i2c_client *client, const u8 reg, @@ -150,7 +150,7 @@ static int mt9v032_write(struct i2c_client *client, const u8 reg, { dev_dbg(&client->dev, "%s: writing 0x%04x to 0x%02x\n", __func__, data, reg); - return i2c_smbus_write_word_data(client, reg, swab16(data)); + return i2c_smbus_write_word_swapped(client, reg, data); } static int mt9v032_set_chip_control(struct mt9v032 *mt9v032, u16 clear, u16 set) |