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:
39c5c44
)
media: mt9m111: create subdevice device node
author
Akinobu Mita
<
[email protected]
>
Wed, 3 Jan 2018 18:22:44 +0000
(13:22 -0500)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Fri, 5 Jan 2018 17:50:24 +0000
(12:50 -0500)
Set the V4L2_SUBDEV_FL_HAS_DEVNODE flag for the subdevice so that the
subdevice device node is created.
Cc: Mauro Carvalho Chehab <
[email protected]
>
Signed-off-by: Akinobu Mita <
[email protected]
>
Signed-off-by: Sakari Ailus <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/i2c/mt9m111.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/mt9m111.c
b/drivers/media/i2c/mt9m111.c
index b1665d97e0fd90acc2b5f52773382a59758b0262..4fa10df261e1d589c4b988c35e7c504f6a322028 100644
(file)
--- a/
drivers/media/i2c/mt9m111.c
+++ b/
drivers/media/i2c/mt9m111.c
@@
-951,6
+951,8
@@
static int mt9m111_probe(struct i2c_client *client,
mt9m111->ctx = &context_b;
v4l2_i2c_subdev_init(&mt9m111->subdev, client, &mt9m111_subdev_ops);
+ mt9m111->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
+
v4l2_ctrl_handler_init(&mt9m111->hdl, 5);
v4l2_ctrl_new_std(&mt9m111->hdl, &mt9m111_ctrl_ops,
V4L2_CID_VFLIP, 0, 1, 1, 0);