projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a69e997
)
media: dw9714: annotate a __be16 integer value
author
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 23 Jan 2018 12:46:07 +0000
(07:46 -0500)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 23 Jan 2018 13:04:51 +0000
(08:04 -0500)
As warned:
drivers/media/i2c/dw9714.c: warning: incorrect type in initializer (different base types): => 64:19
Acked-by: Sakari Ailus <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/i2c/dw9714.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/dw9714.c
b/drivers/media/i2c/dw9714.c
index 57460dadddd1b89f489887a30fb455d4c8ca8ca1..8dbbf0f917dffbd8188be766a0d66dd447099b1e 100644
(file)
--- a/
drivers/media/i2c/dw9714.c
+++ b/
drivers/media/i2c/dw9714.c
@@
-60,7
+60,7
@@
static inline struct dw9714_device *sd_to_dw9714_vcm(struct v4l2_subdev *subdev)
static int dw9714_i2c_write(struct i2c_client *client, u16 data)
{
int ret;
-
u
16 val = cpu_to_be16(data);
+
__be
16 val = cpu_to_be16(data);
ret = i2c_master_send(client, (const char *)&val, sizeof(val));
if (ret != sizeof(val)) {