diff options
Diffstat (limited to 'linux/drivers/media/video/wm8775.c')
-rw-r--r-- | linux/drivers/media/video/wm8775.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/wm8775.c b/linux/drivers/media/video/wm8775.c index 841d2989f..204685dab 100644 --- a/linux/drivers/media/video/wm8775.c +++ b/linux/drivers/media/video/wm8775.c @@ -75,7 +75,7 @@ static int wm8775_write(struct i2c_client *client, int reg, u16 val) } for (i = 0; i < 3; i++) { - if (i2c_smbus_write_byte_data(client, (reg << 1) | + if (i2c_smbus_write_byte_data(client, (reg << 1) | (val >> 8), val & 0xff) == 0) { return 0; } |