Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4574831rwb; Tue, 8 Nov 2022 20:07:41 -0800 (PST) X-Google-Smtp-Source: AMsMyM48bkF/kWWDuInSjQjxjQQxvE+K5J8P18+qm6mDFX6U7xFsw5UDHcZupTcF3naZ+qL8AS08 X-Received: by 2002:a05:6402:1292:b0:463:27a0:72b4 with SMTP id w18-20020a056402129200b0046327a072b4mr54407327edv.419.1667966861015; Tue, 08 Nov 2022 20:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667966861; cv=none; d=google.com; s=arc-20160816; b=FbfG8phV17CUGPrTeEaQDfE8ItXSFKqcvWFX8LEMmZ5uTpi4PYghYyvAeeWdFiNMvy 48K0YKVUqD7S3HxZnn1w2o+9fxG+eucBftTG/YYjtzLnrhQn+QZGsBQIK62OPrABuUWH Djb0hdlGyaDeOUfMozsIenelZuWIt4NihGAN4LyxfDCFGgyNcWpq8+LybQa3Pzzetka2 jsn+8FsK0bbLotzAiTfeIb6Ks4MeEIBl1raAKlL+/mU0+lcGRW2FKnxBlcseBhWBLcnD AI8pynTXNYMs382Ip2FNFR5KkcE7Mprbbf8rih+Fy419N/X6J25BBCoktZ6bGqE1hqba WR4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=qOib3BVPcMVZWc5FY4R1ETlHc0yz4FOvS4esJiu92sw=; b=UwS6gFohhfKwkYSto3OGku1OjBk+ZNJGxJ+/rmJV42pgJnkvnnojSw/irxIIfO/aqz 5ZY4BXIa5Om3Lu+wQLjz25/At86dyWGmBjrg3735a5484sDNJjjFHSxk0DBcTYdzfVyn ub5xp5P6BKaCVGDvkok3mSJtlZ8Gq+0gXDAg70zNAuMeJZ5dYVO0fqIS4mWUQ+4FZWya utaWZA2GTPjoylNJOo38PH8wNheOm0O7CSAqjsIrFRotwOiO06PX2WCPP/pSYm70Rxbp k3hIxfyUMqMYqQ7Y8OKsn0UOdDRDvS/g+t2cqnlT1KZx8Dqwsnp3sCqGppk3dBfUMbh1 ZuNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=XebSOG0I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a50950b000000b00462352ef503si13043491eda.518.2022.11.08.20.07.17; Tue, 08 Nov 2022 20:07:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=XebSOG0I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbiKIDtu (ORCPT + 94 others); Tue, 8 Nov 2022 22:49:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbiKIDtr (ORCPT ); Tue, 8 Nov 2022 22:49:47 -0500 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A529132 for ; Tue, 8 Nov 2022 19:49:45 -0800 (PST) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20221109034942epoutp04e443040996b0eae0f816e57a05f4d401~lzgq7Rtaq0168001680epoutp04N for ; Wed, 9 Nov 2022 03:49:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20221109034942epoutp04e443040996b0eae0f816e57a05f4d401~lzgq7Rtaq0168001680epoutp04N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667965782; bh=qOib3BVPcMVZWc5FY4R1ETlHc0yz4FOvS4esJiu92sw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XebSOG0IhVk1i315rEeYTg20EzIT/uiZqPMpVBP6nUyfhnVNE8tPyank6SfG1YOZZ fKOQxr6ivFVygqMDDYujPf9AQ7vEtPpZ1k/qOkBgETZT8lHgTeEErdZnXLdQOjupbw 9LcI38+ELAgtTGuXlZm9JhBcWD9xbcS6TMASTrjM= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20221109034941epcas5p28347ea4764de74c791d2a40e9e1ddc4d~lzgqG8tIq3004330043epcas5p2k; Wed, 9 Nov 2022 03:49:41 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.180]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4N6WDx2QZ7z4x9Pp; Wed, 9 Nov 2022 03:49:37 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 4D.1B.56352.F432B636; Wed, 9 Nov 2022 12:49:35 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20221109034703epcas5p3462fab543f9a9f5159476b7d5eadfbfd~lzeWiD5WI0296002960epcas5p3m; Wed, 9 Nov 2022 03:47:03 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221109034703epsmtrp2745436c2f2c5cc1f66922e45d136138e~lzeWgcw6m1855418554epsmtrp2C; Wed, 9 Nov 2022 03:47:03 +0000 (GMT) X-AuditID: b6c32a4b-5f7fe7000001dc20-a6-636b234f5ba8 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 2C.18.18644.6B22B636; Wed, 9 Nov 2022 12:47:03 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221109034659epsmtip1a3fa99edd6a35fb64f81b4f317e3adda~lzeTWaEuD0103101031epsmtip1w; Wed, 9 Nov 2022 03:46:59 +0000 (GMT) From: Aakarsh Jain To: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: m.szyprowski@samsung.com, andrzej.hajda@intel.com, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, ezequiel@vanguardiasur.com.ar, jernej.skrabec@gmail.com, benjamin.gaignard@collabora.com, krzysztof.kozlowski+dt@linaro.org, stanimir.varbanov@linaro.org, dillon.minfei@gmail.com, david.plowman@raspberrypi.com, mark.rutland@arm.com, robh+dt@kernel.org, krzk+dt@kernel.org, andi@etezian.org, alim.akhtar@samsung.com, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, smitha.t@samsung.com, aakarsh.jain@samsung.com Subject: [PATCH 2/3] media: s5p-mfc:fix usage of Block comment alignment Date: Wed, 9 Nov 2022 09:23:47 +0530 Message-Id: <20221109035348.69026-2-aakarsh.jain@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109035348.69026-1-aakarsh.jain@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WTf0xTVxTHc997fS3MLi/A5EKYw+I2wBWoULigOJy4PMdwGJMFXbKuKY+C lNeuLUydTthgsQ0t4HRThqj8EEWgyG/5lYJVIolmBI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rnq iOWRuHXM0yuirJDo5tHXfaOnLt3qb7krXRs7EJp6y7HAb/HnW97h4w6eKk5euDRvpcNfiyR2 WW9wSsUEPy5KwAfbdRsjsuLHj/Zci5y9Ie1j+PeeVQZnQr3eKI1vELJlm9vCFo20PrcFdYa4 NrUHTM/jFlfxiTZcOOmRbjc19XFhiM8JOxjQSa35ieFg1frzYkITJw+S4GqN/A/dPMNsJgMA AA== X-CMS-MailID: 20221109034703epcas5p3462fab543f9a9f5159476b7d5eadfbfd X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221109034703epcas5p3462fab543f9a9f5159476b7d5eadfbfd References: <20221109035348.69026-1-aakarsh.jain@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix usage of block comment alignment in drivers/media/platform/samsung/ s5p-mfc/s5p_mfc.c as recommended by scripts/checkpatch.pl. Signed-off-by: Aakarsh Jain --- .../media/platform/samsung/s5p-mfc/s5p_mfc.c | 49 ++++++++++++------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c index bc6d53e78876..e857f974bb98 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c @@ -148,11 +148,13 @@ static void s5p_mfc_watchdog(struct timer_list *t) if (test_bit(0, &dev->hw_lock)) atomic_inc(&dev->watchdog_cnt); if (atomic_read(&dev->watchdog_cnt) >= MFC_WATCHDOG_CNT) { - /* This means that hw is busy and no interrupts were + /* + * This means that hw is busy and no interrupts were * generated by hw for the Nth time of running this * watchdog timer. This usually means a serious hw * error. Now it is time to kill all instances and - * reset the MFC. */ + * reset the MFC. + */ mfc_err("Time out during waiting for HW\n"); schedule_work(&dev->watchdog_work); } @@ -172,8 +174,10 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work) dev = container_of(work, struct s5p_mfc_dev, watchdog_work); mfc_err("Driver timeout error handling\n"); - /* Lock the mutex that protects open and release. - * This is necessary as they may load and unload firmware. */ + /* + * Lock the mutex that protects open and release. + * This is necessary as they may load and unload firmware. + */ mutex_locked = mutex_trylock(&dev->mfc_mutex); if (!mutex_locked) mfc_err("Error: some instance may be closing/opening\n"); @@ -197,8 +201,10 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work) /* De-init MFC */ s5p_mfc_deinit_hw(dev); - /* Double check if there is at least one instance running. - * If no instance is in memory than no firmware should be present */ + /* + * Double check if there is at least one instance running. + * If no instance is in memory than no firmware should be present + */ if (dev->num_inst > 0) { ret = s5p_mfc_load_firmware(dev); if (ret) { @@ -260,8 +266,10 @@ static void s5p_mfc_handle_frame_copy_time(struct s5p_mfc_ctx *ctx) return; dec_y_addr = (u32)s5p_mfc_hw_call(dev->mfc_ops, get_dec_y_adr, dev); - /* Copy timestamp / timecode from decoded src to dst and set - appropriate flags. */ + /* + * Copy timestamp / timecode from decoded src to dst and set + * appropriate flags. + */ src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list); list_for_each_entry(dst_buf, &ctx->dst_queue, list) { u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); @@ -289,8 +297,10 @@ static void s5p_mfc_handle_frame_copy_time(struct s5p_mfc_ctx *ctx) V4L2_BUF_FLAG_BFRAME; break; default: - /* Don't know how to handle - S5P_FIMV_DECODE_FRAME_OTHER_FRAME. */ + /* + * Don't know how to handle + * S5P_FIMV_DECODE_FRAME_OTHER_FRAME. + */ mfc_debug(2, "Unexpected frame type: %d\n", frame_type); } @@ -322,8 +332,10 @@ static void s5p_mfc_handle_frame_new(struct s5p_mfc_ctx *ctx, unsigned int err) return; } ctx->sequence++; - /* The MFC returns address of the buffer, now we have to - * check which vb2_buffer does it correspond to */ + /* + * The MFC returns address of the buffer, now we have to + * check which vb2_buffer does it correspond to + */ list_for_each_entry(dst_buf, &ctx->dst_queue, list) { u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); @@ -476,8 +488,10 @@ static void s5p_mfc_handle_error(struct s5p_mfc_dev *dev, case MFCINST_FINISHING: case MFCINST_FINISHED: case MFCINST_RUNNING: - /* It is highly probable that an error occurred - * while decoding a frame */ + /* + * It is highly probable that an error occurred + * while decoding a frame + */ clear_work_bit(ctx); ctx->state = MFCINST_ERROR; /* Mark all dst buffers as having an error */ @@ -535,6 +549,7 @@ static void s5p_mfc_handle_seq_done(struct s5p_mfc_ctx *ctx, ctx->codec_mode == S5P_MFC_CODEC_H264_MVC_DEC) && !list_empty(&ctx->src_queue)) { struct s5p_mfc_buf *src_buf; + src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list); if (s5p_mfc_hw_call(dev->mfc_ops, get_consumed_stream, @@ -951,7 +966,7 @@ static int s5p_mfc_release(struct file *file) /* * If instance was initialised and not yet freed, * return instance and free resources - */ + */ if (ctx->state != MFCINST_FREE && ctx->state != MFCINST_INIT) { mfc_debug(2, "Has to free instance\n"); s5p_mfc_close_mfc_inst(dev, ctx); @@ -1318,7 +1333,7 @@ static int s5p_mfc_probe(struct platform_device *pdev) /* * Load fails if fs isn't mounted. Try loading anyway. - * _open() will load it, it it fails now. Ignore failure. + * _open() will load it, it fails now. Ignore failure. */ s5p_mfc_load_firmware(dev); @@ -1429,7 +1444,7 @@ static int s5p_mfc_remove(struct platform_device *pdev) * Clear ctx dev pointer to avoid races between s5p_mfc_remove() * and s5p_mfc_release() and s5p_mfc_release() accessing ctx->dev * after s5p_mfc_remove() is run during unbind. - */ + */ mutex_lock(&dev->mfc_mutex); for (i = 0; i < MFC_NUM_CONTEXTS; i++) { ctx = dev->ctx[i]; -- 2.17.1