linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] [media] ad5820: Define entity function
@ 2018-09-20 16:19 Ricardo Ribalda Delgado
  2018-09-20 16:19 ` [PATCH 2/4] [media] ad5820: Add support for enable pin Ricardo Ribalda Delgado
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Ricardo Ribalda Delgado @ 2018-09-20 16:19 UTC (permalink / raw)
  To: Pavel Machek, Sakari Ailus, Mauro Carvalho Chehab, linux-media,
	linux-kernel, Hans Verkuil, Laurent Pinchart
  Cc: Ricardo Ribalda Delgado

Without this patch, media_device_register_entity throws a warning:

dev_warn(mdev->dev,
	 "Entity type for entity %s was not initialized!\n",
	 entity->name);

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
 drivers/media/i2c/ad5820.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c
index 907323f0ca3b..22759aaa2dba 100644
--- a/drivers/media/i2c/ad5820.c
+++ b/drivers/media/i2c/ad5820.c
@@ -317,6 +317,7 @@ static int ad5820_probe(struct i2c_client *client,
 	v4l2_i2c_subdev_init(&coil->subdev, client, &ad5820_ops);
 	coil->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
 	coil->subdev.internal_ops = &ad5820_internal_ops;
+	coil->subdev.entity.function = MEDIA_ENT_F_LENS;
 	strscpy(coil->subdev.name, "ad5820 focus", sizeof(coil->subdev.name));
 
 	ret = media_entity_pads_init(&coil->subdev.entity, 0, NULL);
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2018-09-20 20:32 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-20 16:19 [PATCH 1/4] [media] ad5820: Define entity function Ricardo Ribalda Delgado
2018-09-20 16:19 ` [PATCH 2/4] [media] ad5820: Add support for enable pin Ricardo Ribalda Delgado
2018-09-20 18:40   ` Sakari Ailus
2018-09-20 18:47     ` Ricardo Ribalda Delgado
2018-09-20 18:45   ` [PATCH v2 " Ricardo Ribalda Delgado
2018-09-20 18:54     ` Pavel Machek
2018-09-20 19:06       ` Ricardo Ribalda Delgado
2018-09-20 19:08         ` Pavel Machek
2018-09-20 19:12           ` Ricardo Ribalda Delgado
2018-09-20 20:04             ` Laurent Pinchart
2018-09-20 20:04               ` Laurent Pinchart
2018-09-20 20:14             ` Pavel Machek
2018-09-20 20:21               ` Pavel Machek
2018-09-20 20:32                 ` Ricardo Ribalda Delgado
2018-09-20 16:19 ` [PATCH 3/4] [media] ad5820: DT new optional field enable-gpios Ricardo Ribalda Delgado
2018-09-20 20:21   ` Laurent Pinchart
2018-09-20 20:23     ` Laurent Pinchart
2018-09-20 20:25       ` Ricardo Ribalda Delgado
2018-09-20 20:28         ` Pavel Machek
2018-09-20 16:19 ` [PATCH 4/4] [media] ad5820: Add support for of-autoload Ricardo Ribalda Delgado
2018-09-20 18:31   ` [PATCH v2 " Ricardo Ribalda Delgado
2018-09-20 18:55     ` Pavel Machek
2018-09-20 20:10     ` Laurent Pinchart
2018-09-20 20:18       ` Sakari Ailus
2018-09-20 20:22 ` [PATCH 1/4] [media] ad5820: Define entity function Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).