From patchwork Thu Dec 7 07:47:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikhail Shvetsov X-Patchwork-Id: 10097781 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4800D60325 for ; Thu, 7 Dec 2017 07:47:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37EB02980F for ; Thu, 7 Dec 2017 07:47:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C5652A2A8; Thu, 7 Dec 2017 07:47:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 94A8D2980F for ; Thu, 7 Dec 2017 07:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=zf7959uC/MvW0R0/irP+TgJG+GxjEXml6LdgAgMO6Io=; b=FeJ evi+IBVL+PaFLhrRyWePWR8bB90y1Zjgg5bGmzVCh7J9hwwiEX6JhQ5goabinceHU5OD1v63J+fkP +rHQrbJhJ1cVi6V3+hfFDB3bERYqDNkdftcLDexdjYz3XNj486i83YTMpefsULe4D1pD0lv7rpgXo tA9JzJHKYCQqjorEsa+MIH9SrlXotafz0Rbth3CJvbipKHFSorcgEpShrDpYL3t4GnXHwyXFnsqET dShqSEWLdbm0K5/xjCm6MIrxKLqKClKDsCK2Qp2DZeOyCwtIhzd/x8GLOKnKNbD9G//3+rEXtHfl9 OSr1qtwcODqG5+UJMLAAU3f6DNX6xhg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eMquI-00022N-Bx; Thu, 07 Dec 2017 07:47:46 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eMquD-00020B-U6; Thu, 07 Dec 2017 07:47:44 +0000 Received: by mail-lf0-x242.google.com with SMTP id e137so7079973lfg.5; Wed, 06 Dec 2017 23:47:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=80NA/A44zzbT+vzy0caFOEgof70KBKVgZJOgrxtaRlM=; b=NCSOPKk/6yhuJr9Y3jSva3bQssfVgbKgldfV7I3KzMOv9uf/2EqDMDu8k1szR+juA6 GmU+jvbLb4gfdmKTDuCZ+H78Oe2UcxbV941q9+2BQQejBYp0wghCvXWrbVGgI3XNjRAW nne+w+G6/PgVABOudoFWpB8aXJsAnzVUk7SK+LOos3QyW9nDP+eofGdTmHJuxGyVnHZj ooSN+FXwzrO5s7GiX3tNiElQVuqZKcPJms11YZoYaMPHLUIQGOs4owPjfZhwaLTFLlRv FGWl/mlhii/eIONGKMdmbFy9RakJSim4XFKoFFtpqokTcuzlwRANLLMW6F9yoHupqIzE m4Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=80NA/A44zzbT+vzy0caFOEgof70KBKVgZJOgrxtaRlM=; b=sZiQuMBpjYlqf2XRPvGNSTdgDA+LKCVUGcCkdDWykAZEpw5KfUVpklc3rWcJ8/AbOV io128nC6q2Y9FM4KxHc5FiWgFBq7UyuiDbOJT1Vl9Cif+LTknCzydU4X2mOsbZRaERfZ I2wslEMYY8aZy8LGg5aBQgdVE0hpD29IiDfRgy4d3yZo61UHnCyDOqiJrBqxXGupNxE6 o9FtxrST+wC5FiWNYHu9NX9QS376ixCZ98wGTR7g67PSUV0+30yPza3nWp0+DH9cDMyL FC/adkyrOBlM31WzUOCpwdqs2VKzoRThn1YNRn1BUED23CPXIt+0hXyzHeEArOLPOh3Q ZecQ== X-Gm-Message-State: AJaThX53GR19IFiDnO8NEBvtibUsfkgS5KbH4RZf/2/9wxSXyF116mlE plHbrA7IHTcnJRABvqrKzeA= X-Google-Smtp-Source: AGs4zMZ2FR7xGP2ASv8Fy+iuHYaW5fQj44kTBccw2hxP8TQdMA+Cf/xMGUySbNCG5cqic0He4wF9aA== X-Received: by 10.46.2.204 with SMTP id y73mr14721295lje.183.1512632838689; Wed, 06 Dec 2017 23:47:18 -0800 (PST) Received: from localhost.localdomain ([95.167.174.198]) by smtp.gmail.com with ESMTPSA id 79sm932128ljq.5.2017.12.06.23.47.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Dec 2017 23:47:17 -0800 (PST) From: Mikhail Shvetsov To: eric@anholt.net Subject: [PATCH 1/1] codestyle issue fixed drivers/staging/vc04_services Date: Thu, 7 Dec 2017 10:47:08 +0300 Message-Id: <40d794a2bd0dd9dbb3add85c79b9b314ccbb480a.1512631936.git.lameli67@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171206_234742_207615_3B125361 X-CRM114-Status: GOOD ( 11.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stefan.wahren@i2se.com, devel@driverdev.osuosl.org, Mike , gregkh@linuxfoundation.org, goudapatilk@gmail.com, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, lameli67@yandex.ru, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mike Signed-off-by: Mike --- .../interface/vchiq_arm/vchiq_kern_lib.c | 64 ++++++++++++---------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_kern_lib.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_kern_lib.c index 34f746db19cd..d21bb154f78c 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_kern_lib.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_kern_lib.c @@ -65,10 +65,10 @@ vchiq_blocking_bulk_transfer(VCHIQ_SERVICE_HANDLE_T handle, void *data, unsigned int size, VCHIQ_BULK_DIR_T dir); /**************************************************************************** -* -* vchiq_initialise -* -***************************************************************************/ + * + * vchiq_initialise + * + ***************************************************************************/ #define VCHIQ_INIT_RETRIES 10 VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instance_out) { @@ -80,7 +80,9 @@ VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instance_out) vchiq_log_trace(vchiq_core_log_level, "%s called", __func__); /* VideoCore may not be ready due to boot up timing. - It may never be ready if kernel and firmware are mismatched, so don't block forever. */ + * It may never be ready if kernel and firmware are mismatched, so don't + * block forever. + */ for (i = 0; i < VCHIQ_INIT_RETRIES; i++) { state = vchiq_get_state(); if (state) @@ -93,7 +95,8 @@ VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instance_out) goto failed; } else if (i > 0) { vchiq_log_warning(vchiq_core_log_level, - "%s: videocore initialized after %d retries\n", __func__, i); + "%s: videocore initialized after %d retries\n", + __func__, i); } instance = kzalloc(sizeof(*instance), GFP_KERNEL); @@ -121,10 +124,10 @@ VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instance_out) EXPORT_SYMBOL(vchiq_initialise); /**************************************************************************** -* -* vchiq_shutdown -* -***************************************************************************/ + * + * vchiq_shutdown + * + ***************************************************************************/ VCHIQ_STATUS_T vchiq_shutdown(VCHIQ_INSTANCE_T instance) { @@ -169,10 +172,10 @@ VCHIQ_STATUS_T vchiq_shutdown(VCHIQ_INSTANCE_T instance) EXPORT_SYMBOL(vchiq_shutdown); /**************************************************************************** -* -* vchiq_is_connected -* -***************************************************************************/ + * + * vchiq_is_connected + * + ***************************************************************************/ static int vchiq_is_connected(VCHIQ_INSTANCE_T instance) { @@ -180,10 +183,10 @@ static int vchiq_is_connected(VCHIQ_INSTANCE_T instance) } /**************************************************************************** -* -* vchiq_connect -* -***************************************************************************/ + * + * vchiq_connect + * + ***************************************************************************/ VCHIQ_STATUS_T vchiq_connect(VCHIQ_INSTANCE_T instance) { @@ -215,10 +218,10 @@ VCHIQ_STATUS_T vchiq_connect(VCHIQ_INSTANCE_T instance) EXPORT_SYMBOL(vchiq_connect); /**************************************************************************** -* -* vchiq_add_service -* -***************************************************************************/ + * + * vchiq_add_service + * + ***************************************************************************/ VCHIQ_STATUS_T vchiq_add_service( VCHIQ_INSTANCE_T instance, @@ -260,10 +263,10 @@ VCHIQ_STATUS_T vchiq_add_service( EXPORT_SYMBOL(vchiq_add_service); /**************************************************************************** -* -* vchiq_open_service -* -***************************************************************************/ + * + * vchiq_open_service + * + ***************************************************************************/ VCHIQ_STATUS_T vchiq_open_service( VCHIQ_INSTANCE_T instance, @@ -414,8 +417,9 @@ vchiq_blocking_bulk_transfer(VCHIQ_SERVICE_HANDLE_T handle, void *data, if ((bulk->data != data) || (bulk->size != size)) { /* This is not a retry of the previous one. - ** Cancel the signal when the transfer - ** completes. */ + * Cancel the signal when the transfer + * completes. + */ spin_lock(&bulk_waiter_spinlock); bulk->userdata = NULL; spin_unlock(&bulk_waiter_spinlock); @@ -441,7 +445,9 @@ vchiq_blocking_bulk_transfer(VCHIQ_SERVICE_HANDLE_T handle, void *data, if (bulk) { /* Cancel the signal when the transfer - ** completes. */ + * + * completes. + */ spin_lock(&bulk_waiter_spinlock); bulk->userdata = NULL; spin_unlock(&bulk_waiter_spinlock);