Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2781191pxu; Mon, 7 Dec 2020 15:56:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4jN4mEl9HU9rFdlcV6wlr+DU0EjeKGJF3HIRGcnmS3cU3SqN/L8X2zQ6cTPs5O2VtjQYJ X-Received: by 2002:aa7:c652:: with SMTP id z18mr21535947edr.60.1607385367411; Mon, 07 Dec 2020 15:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607385367; cv=none; d=google.com; s=arc-20160816; b=fC2PJv9oLF03DDam5TusW13PoSj8ngI2Dc2OMDHPGnFCuPCkNTW8vJAqs+jeK+NRSM Q2E01zcXa0wMG3U2vmPwrndSMViSB37y+blSr6E63RZcmYqvJa3pYXmY6MuKe3ZDfHir R6TuNWWumNc2IkQPKKMNff3h80ndfkznH509M1iOUQtKWErM741uERlmTuQ64Bs7xfaA lamqUGxlgS+S8dQHq5hp497EZS/RdKFnqD/1ulbhWkK4NJzbBcQolGzVKTaBCCCaq+dp o2Y5nZWM5K3aaiXtm7cb61pVRrGapgZwpUg3dr4gyblZOg+80SXy7Pq9NexIYaQUtT4N m6yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fiKxfjbWyOAkDda9alRT84h/tz9lJrZG2nvFZzgkl2U=; b=cV53Ez6H+QDlw2miA+YKWFX7mS9kK7ccqlAoyjkX54P4TllCDLuhXWQlKfYsystGfM VCT5G/kv1rzcBSOHONqpx+PiSuyXUkRySx/l5131aCRXTbR8Dz8x/urTxA+Toc+cVRzj UA5ZazjhiMJXUBD7yBYLIQvl6l16rTWVIHzeJfmopZoaj59FOS//xdxObKo8mGFX6luT 5iQvklZM2p5bRMVZBf7r0tFE18OLPfZJfjwM4+oy3SmLrdAWzn7A1o4xthfv+EVY7KX7 Utc2vzpeqdmTFgmNHX8krll0sVIItC7m7qYneTqE+vEMvoQMp7IM5X4sedXIDBXtu2DF FVmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck10si7481561edb.568.2020.12.07.15.55.31; Mon, 07 Dec 2020 15:56:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726954AbgLGTcE (ORCPT + 99 others); Mon, 7 Dec 2020 14:32:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbgLGTcD (ORCPT ); Mon, 7 Dec 2020 14:32:03 -0500 Received: from faui03.informatik.uni-erlangen.de (faui03.informatik.uni-erlangen.de [IPv6:2001:638:a000:4130:131:188:30:103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 892D1C061794; Mon, 7 Dec 2020 11:31:23 -0800 (PST) Received: from cipterm0.informatik.uni-erlangen.de (cipterm0.cip.cs.fau.de [131.188.30.90]) by faui03.informatik.uni-erlangen.de (Postfix) with ESMTP id 92F4624100E; Mon, 7 Dec 2020 20:30:37 +0100 (CET) Received: by cipterm0.informatik.uni-erlangen.de (Postfix, from userid 67858) id 8D30A3280304; Mon, 7 Dec 2020 20:30:36 +0100 (CET) From: Philipp Gerlesberger To: linux-kernel@vger.kernel.org Cc: Philipp Gerlesberger , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, mchehab@kernel.org, sakari.ailus@linux.intel.com, gregkh@linuxfoundation.org, ij72uhux@stud.informatik.uni-erlangen.de, linux-kernel@i4.cs.fau.de Subject: [PATCH 11/12] media: atomisp: Write function decleration in one line Date: Mon, 7 Dec 2020 20:26:38 +0100 Message-Id: <20201207192638.15219-12-Philipp.Gerlesberger@fau.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201207192638.15219-1-Philipp.Gerlesberger@fau.de> References: <20201207192638.15219-1-Philipp.Gerlesberger@fau.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' WARNING:LEADING_SPACE: please, no spaces at the start of a line Avoid these errors by writing the function decleration in one line. Co-developed-by: Andrey Khlopkov Signed-off-by: Andrey Khlopkov Signed-off-by: Philipp Gerlesberger --- .../atomisp/pci/runtime/queue/src/queue.c | 44 +++++-------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c b/drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c index aea6c66a3cee..2f1c2df59f71 100644 --- a/drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c +++ b/drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c @@ -22,9 +22,7 @@ /***************************************************************************** * Queue Public APIs *****************************************************************************/ -int ia_css_queue_local_init( - ia_css_queue_t *qhandle, - ia_css_queue_local_t *desc) +int ia_css_queue_local_init(ia_css_queue_t *qhandle, ia_css_queue_local_t *desc) { if (NULL == qhandle || NULL == desc || NULL == desc->cb_elems || NULL == desc->cb_desc) { @@ -43,9 +41,7 @@ int ia_css_queue_local_init( return 0; } -int ia_css_queue_remote_init( - ia_css_queue_t *qhandle, - ia_css_queue_remote_t *desc) +int ia_css_queue_remote_init(ia_css_queue_t *qhandle, ia_css_queue_remote_t *desc) { if (NULL == qhandle || NULL == desc) { /* Invalid parameters, return error*/ @@ -69,8 +65,7 @@ int ia_css_queue_remote_init( return 0; } -int ia_css_queue_uninit( - ia_css_queue_t *qhandle) +int ia_css_queue_uninit(ia_css_queue_t *qhandle) { if (!qhandle) return -EINVAL; @@ -84,9 +79,7 @@ int ia_css_queue_uninit( return 0; } -int ia_css_queue_enqueue( - ia_css_queue_t *qhandle, - uint32_t item) +int ia_css_queue_enqueue(ia_css_queue_t *qhandle, uint32_t item) { int error = 0; @@ -143,9 +136,7 @@ int ia_css_queue_enqueue( return 0; } -int ia_css_queue_dequeue( - ia_css_queue_t *qhandle, - uint32_t *item) +int ia_css_queue_dequeue(ia_css_queue_t *qhandle, uint32_t *item) { int error = 0; @@ -200,9 +191,7 @@ int ia_css_queue_dequeue( return 0; } -int ia_css_queue_is_full( - ia_css_queue_t *qhandle, - bool *is_full) +int ia_css_queue_is_full(ia_css_queue_t *qhandle, bool *is_full) { int error = 0; @@ -234,9 +223,7 @@ int ia_css_queue_is_full( return -EINVAL; } -int ia_css_queue_get_free_space( - ia_css_queue_t *qhandle, - uint32_t *size) +int ia_css_queue_get_free_space(ia_css_queue_t *qhandle, uint32_t *size) { int error = 0; @@ -268,9 +255,7 @@ int ia_css_queue_get_free_space( return -EINVAL; } -int ia_css_queue_get_used_space( - ia_css_queue_t *qhandle, - uint32_t *size) +int ia_css_queue_get_used_space(ia_css_queue_t *qhandle, uint32_t *size) { int error = 0; @@ -302,10 +287,7 @@ int ia_css_queue_get_used_space( return -EINVAL; } -int ia_css_queue_peek( - ia_css_queue_t *qhandle, - u32 offset, - uint32_t *element) +int ia_css_queue_peek(ia_css_queue_t *qhandle, u32 offset, uint32_t *element) { u32 num_elems = 0; int error = 0; @@ -354,9 +336,7 @@ int ia_css_queue_peek( return -EINVAL; } -int ia_css_queue_is_empty( - ia_css_queue_t *qhandle, - bool *is_empty) +int ia_css_queue_is_empty(ia_css_queue_t *qhandle, bool *is_empty) { int error = 0; @@ -388,9 +368,7 @@ int ia_css_queue_is_empty( return -EINVAL; } -int ia_css_queue_get_size( - ia_css_queue_t *qhandle, - uint32_t *size) +int ia_css_queue_get_size(ia_css_queue_t *qhandle, uint32_t *size) { int error = 0; -- 2.20.1