From patchwork Sat Aug 25 03:09:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 1372951 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D5B4E3FC33 for ; Sat, 25 Aug 2012 03:09:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754727Ab2HYDJb (ORCPT ); Fri, 24 Aug 2012 23:09:31 -0400 Received: from mail-gg0-f174.google.com ([209.85.161.174]:44969 "EHLO mail-gg0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754749Ab2HYDJ0 (ORCPT ); Fri, 24 Aug 2012 23:09:26 -0400 Received: by mail-gg0-f174.google.com with SMTP id k6so581646ggd.19 for ; Fri, 24 Aug 2012 20:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=lGIpLdsFFrvr/jUwW7KOIjLz9Q/yhBdUrKccRbXxiI0=; b=nQzgh9I/VEwAONASjQghWmSttn99s6sYwi4RWoNA0rlyXZLSl8D9bZ7ArzcFPzCwOQ itrir+WfZ2EQ1BGwD+RqTQ/RFt0mnHSq8Z/xyPD4PwgYWtaVIGGRyM/a4xDn8E3Jh6M3 ewlwzBaCWRcoGm1WRxBK+8aXP08541P4FseO78rDU/Tr95SC0Nsc60/GY/oBr9SoTFgr kG9AmFX1kAzxyDrvqwq4WUpqeLyhA68HLWBLdT1NNkVcNWV6v0G1NV2irztgKjj31bur VsjWlVdCLNKjBHLl1zju711DDzkA/WyGLrlV+QIhEEaKgrYkUBPwTQyKIGNIa2D5CmH1 JIMg== Received: by 10.236.195.97 with SMTP id o61mr6246083yhn.17.1345864165808; Fri, 24 Aug 2012 20:09:25 -0700 (PDT) Received: from localhost.cpe.express.com.ar ([200.81.126.15]) by mx.google.com with ESMTPS id o25sm22166065yhm.14.2012.08.24.20.09.24 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2012 20:09:25 -0700 (PDT) From: Ezequiel Garcia To: , Mauro Carvalho Chehab Cc: Ezequiel Garcia Subject: [PATCH 9/9] videobuf2-core: Change vb2_queue_init return type to void Date: Sat, 25 Aug 2012 00:09:06 -0300 Message-Id: <1345864146-2207-9-git-send-email-elezegarcia@gmail.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1345864146-2207-1-git-send-email-elezegarcia@gmail.com> References: <1345864146-2207-1-git-send-email-elezegarcia@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/videobuf2-core.c | 3 +-- include/media/videobuf2-core.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 4da3df6..ea45842 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -1736,7 +1736,7 @@ EXPORT_SYMBOL_GPL(vb2_poll); * to the struct vb2_queue description in include/media/videobuf2-core.h * for more information. */ -int vb2_queue_init(struct vb2_queue *q) +void vb2_queue_init(struct vb2_queue *q) { BUG_ON(!q); BUG_ON(!q->ops); @@ -1755,7 +1755,6 @@ int vb2_queue_init(struct vb2_queue *q) if (q->buf_struct_size == 0) q->buf_struct_size = sizeof(struct vb2_buffer); - return 0; } EXPORT_SYMBOL_GPL(vb2_queue_init); diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 8dd9b6c..ed6854a 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h @@ -324,7 +324,7 @@ int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req); int vb2_create_bufs(struct vb2_queue *q, struct v4l2_create_buffers *create); int vb2_prepare_buf(struct vb2_queue *q, struct v4l2_buffer *b); -int vb2_queue_init(struct vb2_queue *q); +void vb2_queue_init(struct vb2_queue *q); void vb2_queue_release(struct vb2_queue *q);