From 723e8923174092825f6ffe13559fe0abc6f38552 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Wed, 12 Oct 2005 04:02:08 +0000 Subject: * ../v4l/scripts/strip-trailing-whitespaces.sh: - Updated script to function in new tree layout. Must be called from top-level. * ../Makefile: - Automatically strip trailing whitespaces before creating Changelog entry. --- linux/drivers/media/video/wm8775.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers/media/video/wm8775.c') 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; } -- cgit v1.2.3