Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27670979rwd; Tue, 4 Jul 2023 06:19:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EPZCjq5W/R9sivOEBOhsWxtkV/wtadvx3yIHjaQdKwnZhiN7aaqpTVxA18jhsIpOPpxX/ X-Received: by 2002:a05:6a20:8f0b:b0:123:21f9:625e with SMTP id b11-20020a056a208f0b00b0012321f9625emr15523490pzk.0.1688476767650; Tue, 04 Jul 2023 06:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688476767; cv=none; d=google.com; s=arc-20160816; b=pCI1Wja3Omt2QqlnM4Bze2EC+YzGuIMuM1UehDTT98Fz+ltHMSL98LJSQynd9DxCak 9vDbtDEc6uiacYi6WcLmASZ/YjDf/HFyX0vK6sWIvWo85Rz+fDEznL3jEogei4NX6shW yUtAtAn1Itc3t7AKmfUPNY7s+ByMTwUIA2TcOOKopMQfuTaVLFhlzcOTaGVdOpiuyIHc gOBJH+K9WiVGsFm+VCramKEnOqo0ql4Le6jUFvKNQYFfGzbLNh6vvc1e4RC5nQvxgR/0 bOeSKuhUQzy+luAkwONDF+JvLvrwcxuPxT4eSo+iBN82mq+ml/DByXYMd3P9Fnh26yak dOlA== 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 :dkim-signature; bh=1nG160FwJ1K5zp++j03+l10HpZf7hcLgyKsrP0wttws=; fh=hRh0dkRCnSL0FdUyVBKnNvf+qbxIVe5KZjmuDrMUaZg=; b=V5j4/e/mUqEcJOt8iq66I5vW3BG1hnU7Phsgt6tHaUu2TnE5x5Z+/BBNT4B6xRKxfu hvRsHZluYroCC6WXb90Grz6cHxddJHBwMtB7PrlLw0Bi2GhMqYWULaM78K/VqnLw1L/I P4panr5hYISsJNe8wN+Sr4Tjw7W3qHLbfHzQQkrFDdzJEsmLWX4ZZSu/yXHDQCYTKj/P x4/fWHRnRU06EGuMvZKl6+uvPFn7i7t5YyXLpxpgIHgnlMNe7vG1cSQVI+Th8Vsyztj+ TFifFpjI7UVpZaVK6ln+cz4/IMwA5r+udTbY+J76rmijR552lLjexJjIZIYw2DK/Dh3j H+cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Yyo0RnXj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cg17-20020a056a00291100b006687ed7b4a5si10407297pfb.140.2023.07.04.06.19.00; Tue, 04 Jul 2023 06:19:27 -0700 (PDT) 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=@mediatek.com header.s=dk header.b=Yyo0RnXj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231613AbjGDNOZ (ORCPT + 99 others); Tue, 4 Jul 2023 09:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231491AbjGDNOM (ORCPT ); Tue, 4 Jul 2023 09:14:12 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52FFC10DC; Tue, 4 Jul 2023 06:14:07 -0700 (PDT) X-UUID: a49f93701a6c11ee9cb5633481061a41-20230704 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=1nG160FwJ1K5zp++j03+l10HpZf7hcLgyKsrP0wttws=; b=Yyo0RnXjh1tDPhxo7hKHW/1P6ggg+Pe9XchUBZbkclJ4CuCBNJYGcI8OoIzvvNl6ZScvMauoIttq4TCB5QweieIgipEtRTKBrObnIqPvHWwo4kJ4m+e2Q2yXKq/T0cZ6WuAw36ZRQdpGKhk8N34okPeSW+Lq9JTM16spnVMNNNk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.27,REQID:d54c4464-eee3-4ead-9e96-6110d713d16c,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:70 X-CID-INFO: VERSION:1.1.27,REQID:d54c4464-eee3-4ead-9e96-6110d713d16c,IP:0,URL :0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:70 X-CID-META: VersionHash:01c9525,CLOUDID:acc08d0d-26a8-467f-b838-f99719a9c083,B ulkID:230704211403P9FXUFLJ,BulkQuantity:1,Recheck:0,SF:29|28|17|19|48|38,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:40,QS:nil,BEC:nil,COL:0, OSI:0,OSA:0,AV:0,LES:1,SPR:NO X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SDM,TF_CID_SPAM_ASC,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD, TF_CID_SPAM_SNR X-UUID: a49f93701a6c11ee9cb5633481061a41-20230704 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 166337333; Tue, 04 Jul 2023 21:14:01 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 4 Jul 2023 21:14:00 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 4 Jul 2023 21:13:59 +0800 From: Yunfei Dong To: =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert CC: Yunfei Dong , Chen-Yu Tsai , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , , , , , , Subject: [PATCH v6,09/11] media: mediatek: vcodec: fix unreasonable parameter definition and style Date: Tue, 4 Jul 2023 21:13:47 +0800 Message-ID: <20230704131349.8354-10-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230704131349.8354-1-yunfei.dong@mediatek.com> References: <20230704131349.8354-1-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED 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 unreasonable coding style. Fix unreasonable parameter definition. Signed-off-by: Yunfei Dong Reviewed-by: Nicolas Dufresne Reviewed-by: AngeloGioacchino Del Regno --- .../media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.h | 4 ++-- .../media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.h b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.h index c3328668a5ff..e0776e1c9398 100644 --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.h +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.h @@ -19,7 +19,7 @@ #define IS_VDEC_INNER_RACING(capability) ((capability) & MTK_VCODEC_INNER_RACING) /* - * struct mtk_vdec_format_types - Structure used to get supported + * enum mtk_vdec_format_types - Structure used to get supported * format types according to decoder capability */ enum mtk_vdec_format_types { @@ -256,7 +256,7 @@ struct mtk_vcodec_dec_dev { const struct mtk_vcodec_dec_pdata *vdec_pdata; struct mtk_vcodec_fw *fw_handler; - unsigned long id_counter; + u64 id_counter; /* decoder hardware mutex lock */ struct mutex dec_mutex[MTK_VDEC_HW_MAX]; diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.h b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.h index 2f6d0160ff1d..5d410a6b15cc 100644 --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.h +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.h @@ -32,13 +32,13 @@ */ struct mtk_vcodec_enc_pdata { bool uses_ext; - unsigned long min_bitrate; - unsigned long max_bitrate; + u64 min_bitrate; + u64 max_bitrate; const struct mtk_video_fmt *capture_formats; size_t num_capture_formats; const struct mtk_video_fmt *output_formats; size_t num_output_formats; - int core_id; + u8 core_id; bool uses_34bit; }; @@ -198,7 +198,7 @@ struct mtk_vcodec_enc_dev { const struct mtk_vcodec_enc_pdata *venc_pdata; struct mtk_vcodec_fw *fw_handler; - unsigned long id_counter; + u64 id_counter; /* encoder hardware mutex lock */ struct mutex enc_mutex; -- 2.18.0