From patchwork Sun Apr 14 11:51:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumadhura Kalyan X-Patchwork-Id: 13628948 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 198AEC4345F for ; Sun, 14 Apr 2024 11:51:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=40XkSYwXPHHhQoEX0dTLu/towbHfVZBDJWnVNtThGrc=; b=1zdyTjkQ/WRlgX n6uXYMn9PmXW336d6N1lT6o6nMbWHSO01eV6dLrFvylO6490vWoxFFdX013ku6AdVl/npM+C3xhp3 v8grVRbBJZC4ZF7QxSo7vPE6m9c0ucNz61qFEDWbqz7MWWPLSGaB4JFon3hjIpPAuZnWODoCmIFls uhQ/heW+l8zMxxtuYwb8R8lPA9ybxH3+D1zs/OKkAZV8Dgc16hGcJ/DvJWm9s7pZ7qFqagL+a5xwE vJXGSYsHW+iAhjGJ5/KEajpLBXq7rF7nQpMfPjK0/RBJo20wCmXI/kqZBOQPNRgpPF6PynMDDmmtL M3yVLmNzJcD1y41GmRow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvyOI-00000005Ny0-06m9; Sun, 14 Apr 2024 11:51:22 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvyOC-00000005Nx7-0T7s; Sun, 14 Apr 2024 11:51:18 +0000 Received: by mail-pj1-x1042.google.com with SMTP id 98e67ed59e1d1-2a6fa7773d3so1251761a91.3; Sun, 14 Apr 2024 04:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713095475; x=1713700275; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qs2idsBX3ZZ5E4aZueQ/SYBDJyQHjsxqMHTtPG/8MaQ=; b=OoGhUI1dJhKKNTBoKHK9t8iPjZaY5zU+DcnIxckOB6inY+Kei6ao9LRtE9LnWSGq10 +kAVLK3ckzCMeDq6B75V5ETfRdhA39/l35kbz1ope81XNRW+VF/h4+oaVy7DmgS95cGf qTIKR57hk5bMYA3pKF6mOTB78w/VQpcwEZK4UHAHO0oybcPYYpipj38/UFHcKOz91Da9 xKmefIWyg/fJzNwKKZhvvz/3PeAPTpb/MLlL5aL7FBs9F3dsVnt1J30J5LvuOgdVw0HQ ZK2cGPwMc2COpnwemXGATxFwjWS3wf8bdnEXTQnrYn6OOloPyO9VfspsQHMR5AQ6K+a5 fXMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713095475; x=1713700275; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qs2idsBX3ZZ5E4aZueQ/SYBDJyQHjsxqMHTtPG/8MaQ=; b=bKUPYNvXt7caybxS9QWEN+Avu0Q1iU9Lf2Vhj1u4UJoGAaYiBiToW1c06H6MjYPMwY d6obK6HeY3kHUPpGs1lEtFLQ1j/c44VxCy3y/289SugWOh9ku1M+EiGcu8cLuO1nCMFw oftgdCMmslaFlB5oWXqCZWqSzXLMXm4dlPbKZ87lmTJF5+dJnt6pX+WjU/+HYbXOx4HU PIWZzuR5cGhwmrJ2rG2NTJ+1pRXpzuoJtE3sqQheYCufHhciUlc9T0KQY9VTIm0CiF1g ikrB52JPLmRuO+cWyK67KFgFB/kgqGmhWeom73j15dhY3fmaDjszSIALtwOCCL3juQUw P7+Q== X-Forwarded-Encrypted: i=1; AJvYcCUM5iuMI5LRaJ2e1Y10E44kKukgh5runla1UoKFq8A2JTCQUkr0Y09j0twrUaDPtBMSHxQ3ULZ48UKo9aMOUbhVD4IEfcEXtd9tsuWu1MTPz+3OIhc= X-Gm-Message-State: AOJu0YzK/bdOYLhB2zwlioyzKBjPtPF3oSv9iM+o/09PipW8umAF35Kh WtIK82dL89SXTevnQol7NSAzBUjIA3FDgLDIqiJ4iK7DRzDcsImk X-Google-Smtp-Source: AGHT+IGRTsogyptL6qX2/64x1lRw3gvt/9KI3ggg0T6r4jcoCUp2JbHXPZtGdmBTqD7gB6JwUFGuKA== X-Received: by 2002:a17:902:e809:b0:1e5:9da5:a799 with SMTP id u9-20020a170902e80900b001e59da5a799mr5635241plg.6.1713095475264; Sun, 14 Apr 2024 04:51:15 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1cb8:5ab4:8eca:a8e7:b24c:7514]) by smtp.gmail.com with ESMTPSA id w13-20020a170902a70d00b001db66f3748fsm5913165plq.182.2024.04.14.04.51.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 04:51:14 -0700 (PDT) From: sumadhura kalyan To: florian.fainelli@broadcom.com, bcm-kernel-feedback-list@broadcom.com, gregkh@linuxfoundation.org Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, sumadhura kalyan Subject: [PATCH v2] staging: vc04_services: Reformatted code according to Kernel Documents. Date: Sun, 14 Apr 2024 17:21:06 +0530 Message-Id: <20240414115106.105946-1-opensourcecond@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240414_045116_442261_C25A699A X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Issue found by checkpatch Signed-off-by: sumadhura kalyan --- v1 -> v2: Updated subject line as per standards .../vc04_services/vchiq-mmal/mmal-vchiq.h | 29 +++++++------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.h b/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.h index 09f030919d4e..98909fde978e 100644 --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.h +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.h @@ -42,8 +42,7 @@ struct vchiq_mmal_port_buffer { struct vchiq_mmal_port; -typedef void (*vchiq_mmal_buffer_cb)( - struct vchiq_mmal_instance *instance, +typedef void (*vchiq_mmal_buffer_cb)(struct vchiq_mmal_instance *instance, struct vchiq_mmal_port *port, int status, struct mmal_buffer *buffer); @@ -101,31 +100,25 @@ int vchiq_mmal_finalise(struct vchiq_mmal_instance *instance); /* Initialise a mmal component and its ports * */ -int vchiq_mmal_component_init( - struct vchiq_mmal_instance *instance, - const char *name, - struct vchiq_mmal_component **component_out); +int vchiq_mmal_component_init(struct vchiq_mmal_instance *instance, + const char *name, struct vchiq_mmal_component **component_out); -int vchiq_mmal_component_finalise( - struct vchiq_mmal_instance *instance, - struct vchiq_mmal_component *component); +int vchiq_mmal_component_finalise(struct vchiq_mmal_instance *instance, + struct vchiq_mmal_component *component); -int vchiq_mmal_component_enable( - struct vchiq_mmal_instance *instance, - struct vchiq_mmal_component *component); +int vchiq_mmal_component_enable(struct vchiq_mmal_instance *instance, + struct vchiq_mmal_component *component); -int vchiq_mmal_component_disable( - struct vchiq_mmal_instance *instance, - struct vchiq_mmal_component *component); +int vchiq_mmal_component_disable(struct vchiq_mmal_instance *instance, + struct vchiq_mmal_component *component); /* enable a mmal port * * enables a port and if a buffer callback provided enque buffer * headers as appropriate for the port. */ -int vchiq_mmal_port_enable( - struct vchiq_mmal_instance *instance, - struct vchiq_mmal_port *port, +int vchiq_mmal_port_enable(struct vchiq_mmal_instance *instance, + struct vchiq_mmal_port *port, vchiq_mmal_buffer_cb buffer_cb); /* disable a port