Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2473682pxu; Mon, 14 Dec 2020 03:18:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZSxciONXWdht1Xmp+zwWk1hxBY1oirPFFYvs9uNV9Rs0u7VlGwYpaaqZr33GVbzheD60V X-Received: by 2002:a50:a684:: with SMTP id e4mr7474236edc.148.1607944723653; Mon, 14 Dec 2020 03:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607944723; cv=none; d=google.com; s=arc-20160816; b=KL/8VxwZ74HLLwoIQ4bG/7/+cqRBaiInBk0yLlnQseHdQmc+y2Owi2kvTxRhyqjKBp TwZtz+xFKvr+rraz/oxVvgNXqgGiaUYMdHl24T0HjnDwTiDrYgR+86i0im+iBNU/W8ku WBlBC/nbxsQ1JFKMYrKvvq7+PAzZutT06/23sqg6zwUSh936KgA+7qWZRreCCMlj6ccM Y4FLMPelDhKUc6bzBaPh0UJe2rHk9Z+l14ZA7k4pJayUi7zP5gO8yNAnlq5bAwQHL3Du 0dgCh6SWad3CNmnvA3quvplzORvKervEtGO6owP0wAq1Pn3yHBN59IqcMAEI718gCWWy NP1g== 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=hlwPWvS24rozeKxH+h+sLUGrCTQNkSbAVteKaPWhKIv3HkMHWyzp/++t9UzqxCYY3m 9rOF8iQOJd5a4kHmYnSTAgfIpG2+8KJIlMM2JV8XXmJ4BYmZK/l2tRyQ97FBW1xlALJ/ pDYKV9jERhp7U4wxh3P5FXNsIsAJfPQdg0vCaXdJDPAfJRNG/+H1PgjY5+YQRq1mKuRu BhagxcgoetAZFQHeTOSyICsEi3PkUIIn1PPYaZTfG319CIXARFzKXuPOWVKNd4SxOuym lsHgiuSlCfmTGp61ozODMSGXA46+9VDlL3Qv0ffbn2UbJKaLEaDCkwkdsaGcAImNut1j YMpw== 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 hj13si9354854ejb.475.2020.12.14.03.18.20; Mon, 14 Dec 2020 03:18:43 -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 S2389597AbgLNLP2 (ORCPT + 99 others); Mon, 14 Dec 2020 06:15:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731621AbgLNLLU (ORCPT ); Mon, 14 Dec 2020 06:11:20 -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 868EAC061793; Mon, 14 Dec 2020 03:10: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 821C2240BAA; Mon, 14 Dec 2020 12:10:20 +0100 (CET) Received: by cipterm0.informatik.uni-erlangen.de (Postfix, from userid 67858) id 82BFD3280535; Mon, 14 Dec 2020 12:05:08 +0100 (CET) From: Philipp Gerlesberger To: linux-kernel@vger.kernel.org Cc: Philipp Gerlesberger , ij72uhux@stud.informatik.uni-erlangen.de, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@i4.cs.fau.de, gregkh@linuxfoundation.org, sakari.ailus@linux.intel.com, mchehab@kernel.org Subject: [PATCH v2 11/12] media: atomisp: Write function decleration in one line Date: Mon, 14 Dec 2020 12:03:57 +0100 Message-Id: <20201214110358.7102-12-Philipp.Gerlesberger@fau.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201214110358.7102-10-Philipp.Gerlesberger@fau.de> References: <20201214110358.7102-10-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