提交 a4a02b6e 编写于 作者: M Mauro Carvalho Chehab

media: dw9714: annotate a __be16 integer value

As warned:
   drivers/media/i2c/dw9714.c: warning: incorrect type in initializer (different base types):  => 64:19
Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 a69e9972
...@@ -60,7 +60,7 @@ static inline struct dw9714_device *sd_to_dw9714_vcm(struct v4l2_subdev *subdev) ...@@ -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) static int dw9714_i2c_write(struct i2c_client *client, u16 data)
{ {
int ret; int ret;
u16 val = cpu_to_be16(data); __be16 val = cpu_to_be16(data);
ret = i2c_master_send(client, (const char *)&val, sizeof(val)); ret = i2c_master_send(client, (const char *)&val, sizeof(val));
if (ret != sizeof(val)) { if (ret != sizeof(val)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册