Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2109334rwb; Fri, 28 Jul 2023 23:29:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlFH6NGn2EWyuRAz25rjRLyIgQKp5iKx8Ioj1srtl54Q8JunpOqcq7JqBmjydSNQjVI46GBl X-Received: by 2002:a05:6a20:2450:b0:133:e53c:63b9 with SMTP id t16-20020a056a20245000b00133e53c63b9mr5011276pzc.33.1690612159998; Fri, 28 Jul 2023 23:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690612159; cv=none; d=google.com; s=arc-20160816; b=K7xtjp87Gif5LbcMaG3vwYwckFEyffdhcAMVccHbsnBMsWgf9OMZf5mvo3+GIr3U/O pDFjfojXOd/E3Henv7BHFDKjLYUDZgqEaWoceE5L7apN3tQN7wvtJoLAugjgVwlbRGJa PkXWev7UOyoT8H06NI+wsXUmcMoUYJxssdu6ai1PunZFlv3oCIMIyWAdvpCP1Y46aJxN 1CCMhzWSjW993quauW+nO/31fv+rRlXCPUSrTm0OxAcryQ+ODmo9UCxIOAdPcGlMKd00 PX7I1E4uhn2U4dAqAc2rBC1WhLIuy21lk1RpmGHCdttBBBtcG9Dca9veJBLnvtghNngb 1cyg== 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=MzrtSiKGl4aYuQicr0vbkuPuxjyDXu7jqpRAYhmWTfQ=; fh=dnvkKDphEn4iJqR7Zr9ymMkUoTSWsQaqOPrldMKPwU0=; b=vOQ7qKDV2f5A7P2kERZZV/b2SSSeLgnLuif1+5RO4V5jjKaGPSCJ6Y6d4m14akj53Z wq2W52XViDjxSy8+oz5+PEe1RKSc1QqxZ1n4SGXbzxQ0cKD54SHGetZaV0GRp5N9YmzT A8U+g3oGGBDpEhsUTSqSdq4y1EroQhBKmu8WTHZXJxD/wn16SCtJ7eLDk8EZcWGR4WRb NW0u1BnhACFsOtZCViiMoCbRrVHOgmjRudYFAoCo/0AcNIkmkpBK22DAHqw5uOU88qVz OX5HlYSH2uByNWf5Ly1gAgkFl97eVhy6XrecFfkrv3V9rfeqq4Y0VndE6/UEDCuzRGIj mptA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=f2KB5Isz; 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 d7-20020a056a0010c700b006871aa6882bsi910919pfu.165.2023.07.28.23.29.06; Fri, 28 Jul 2023 23:29:19 -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=f2KB5Isz; 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 S236803AbjG2Czw (ORCPT + 99 others); Fri, 28 Jul 2023 22:55:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235008AbjG2Cze (ORCPT ); Fri, 28 Jul 2023 22:55:34 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 187BA49F4; Fri, 28 Jul 2023 19:55:30 -0700 (PDT) X-UUID: 5ed595b22dbb11eeb20a276fd37b9834-20230729 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=MzrtSiKGl4aYuQicr0vbkuPuxjyDXu7jqpRAYhmWTfQ=; b=f2KB5IszZXqXG1RpsQs85L6JgauqjDTQNJTF8H1NlSNCfcSP/XYFam0FPfLVl2uLyhCsvx+ylbcJVU1tuwDPorowdK0jGck0Lxrs94q9EWBT8EMn3LVVagicUUwfJjUilw7E3vDUCXAxqRS7sXNFB/d/Nn2bXTR0PQxQlmgGjZA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.30,REQID:6ce90975-1c03-4b5b-947c-954095e898bb,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.30,REQID:6ce90975-1c03-4b5b-947c-954095e898bb,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:1fcc6f8,CLOUDID:271273d2-cd77-4e67-bbfd-aa4eaace762f,B ulkID:230729105527ESZIJD5P,BulkQuantity:0,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_SDM,TF_CID_SPAM_ASC,TF_CID_SPAM_FAS, TF_CID_SPAM_FSD X-UUID: 5ed595b22dbb11eeb20a276fd37b9834-20230729 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1654966276; Sat, 29 Jul 2023 10:55:26 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Sat, 29 Jul 2023 10:55:25 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Sat, 29 Jul 2023 10:55:25 +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: Chen-Yu Tsai , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , Yunfei Dong , , , , , , Subject: [PATCH v8,09/11] media: mediatek: vcodec: fix unreasonable parameter definition and style Date: Sat, 29 Jul 2023 10:55:12 +0800 Message-ID: <20230729025515.16029-10-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230729025515.16029-1-yunfei.dong@mediatek.com> References: <20230729025515.16029-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=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no 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 533d8d97f704..4122e37aea67 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 { @@ -258,7 +258,7 @@ struct mtk_vcodec_dec_dev { struct regmap *vdecsys_regmap; 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