All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH vicodec 1/1] media: vicodec: Add empty callbacks to prepare for the request API
@ 2018-10-27 20:37 Dafna Hirschfeld
  2018-10-27 20:42 ` [Outreachy kernel] " Julia Lawall
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Dafna Hirschfeld @ 2018-10-27 20:37 UTC (permalink / raw)
  To: helen.koike, hverkuil, mchehab; +Cc: Dafna Hirschfeld, outreachy-kernel

Add the callbacks `_req_validate` `_req_queue` of the struct
`media_device_ops` as empty functions.
Those will be implemented later.

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
---
 drivers/media/platform/vicodec/vicodec-core.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c
index fdd77441a47b..238a59cdf3d6 100644
--- a/drivers/media/platform/vicodec/vicodec-core.c
+++ b/drivers/media/platform/vicodec/vicodec-core.c
@@ -130,6 +130,20 @@ struct vicodec_ctx {
 	bool			comp_has_next_frame;
 };
 
+static int vicodec_request_validate(struct media_request *req)
+{
+	return 0;
+}
+
+void vicodec_request_queue(struct media_request *req)
+{
+}
+
+static const struct media_device_ops vicodec_m2m_media_ops = {
+	.req_validate   = vicodec_request_validate,
+	.req_queue      = vicodec_request_queue,
+};
+
 static inline struct vicodec_ctx *file2ctx(struct file *file)
 {
 	return container_of(file->private_data, struct vicodec_ctx, fh);
-- 
2.17.1



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

end of thread, other threads:[~2018-10-29 22:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-27 20:37 [PATCH vicodec 1/1] media: vicodec: Add empty callbacks to prepare for the request API Dafna Hirschfeld
2018-10-27 20:42 ` [Outreachy kernel] " Julia Lawall
2018-10-27 23:41 ` Sasha Levin
2018-10-28  5:25   ` Julia Lawall
2018-10-28 10:23     ` Hans Verkuil
2018-10-29  9:53 ` Hans Verkuil
2018-10-29 12:42 ` [PATCH vicodec v2] " Dafna Hirschfeld
2018-10-29 22:14   ` Helen Koike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.