Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3866043rwd; Sat, 17 Jun 2023 03:43:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6rAWcoumUJR+6tTGrAyjYjsNoKP1RvReyVpqZsum8zI1Xe/gfqUm8dtXXTdQykis+QEMsc X-Received: by 2002:a05:6808:105:b0:39a:c209:963 with SMTP id b5-20020a056808010500b0039ac2090963mr3417297oie.57.1686998636030; Sat, 17 Jun 2023 03:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686998635; cv=none; d=google.com; s=arc-20160816; b=Q4WT5qKpg2LwY3g32tIVWww223hsBZ+/ZmzA9D0x4TkX99KlIjh9H7K9O5uOc9p0kU B8hESYaUl6ZynVM2p68P3AzECEQtlFlWrVndskTEQZAdmXA5nxdhNxczmLcl8rba3AAo IU0GmS0qJ/XD0tyozRbSwz4xLICXxHT3k7LfahRlP2RfIzLJZxxtNxDsZulzmNQqhU+o Dktur0GQniXD48BJ7Q7jrv+3JpL6+of/IeDRzHjaS6KyCIuRaJfe5vQm1liYyQGKpj6V GDYq037/obFOyu+C4FM5R91T7oGqtZlyLxUardL1Z1Xy8BXpN2RB9PWKU73AU/Pb3ZA5 jUEQ== 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=7J44CPJLVuQmKx8uRsJDBq0OUSEiyngOmORztKqfS/o=; b=aJ3pAMn7LbiZrNJ0UU6oRHZaC1Ywg/ALGWH9xAchaKx9z/KcQ4KW1ppa5bXG6ujG9a dQrvYsFRrP7PAiYONUBLY82KXUC+gNBre/k0w68mnvyamdxBZ4nRqWDIEASTMbUhpiOu 0x0j9ZwsotTKf0xVY+d88HhzGnWF6ojviIlyrZRBrOEfTM5IzU/Y5rklPaxerdFZFgqA qKgmnGPQmO89dcoFd3+szCdckOYJqu2/F28otB6WQbxYRzfOS5c3jaJsuPfgjhqOsmk4 O0MAQVC56migHqa7FMuSogLuLxm2J8fuWqxBV0P6ystOq0zv1KvtMZc3VyKcNv+2CYj+ mQ5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bJYCj3lz; 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 f16-20020a633810000000b0054288b91d66si16884489pga.635.2023.06.17.03.43.43; Sat, 17 Jun 2023 03:43:55 -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=bJYCj3lz; 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 S1346328AbjFQKdn (ORCPT + 99 others); Sat, 17 Jun 2023 06:33:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346215AbjFQKdS (ORCPT ); Sat, 17 Jun 2023 06:33:18 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B9072120; Sat, 17 Jun 2023 03:33:15 -0700 (PDT) X-UUID: 599ed0ae0cfa11eeb20a276fd37b9834-20230617 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=7J44CPJLVuQmKx8uRsJDBq0OUSEiyngOmORztKqfS/o=; b=bJYCj3lz+PK2s0cycrS8lhZFWS0x7H5+Y0EV8mNq8C79SC4gaV5Y1hvFujgkg1et8yxPU/N9mc0lYX895vA5nRs3jxqhruwdrlfU9h9zxCPOuy2027vumLRUg9rKjNEPMSD/gciFRDm/4cF5WtTT5W1lRKF0+szDTCuy/F9cD0g=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:b61766c7-8fcd-40fb-b11a-3cdee28c7b3f,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.26,REQID:b61766c7-8fcd-40fb-b11a-3cdee28c7b3f,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:cb9a4e1,CLOUDID:7e95bc3e-de1e-4348-bc35-c96f92f1dcbb,B ulkID:230617183310OPMWGR4S,BulkQuantity:0,Recheck:0,SF:17|19|48|38|29|28,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 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,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: 599ed0ae0cfa11eeb20a276fd37b9834-20230617 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 839294246; Sat, 17 Jun 2023 18:33:07 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Sat, 17 Jun 2023 18:33:06 +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, 17 Jun 2023 18:33:05 +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 v3,09/11] mediatek: vcodec: fix unreasonable parameter definition and style Date: Sat, 17 Jun 2023 18:32:53 +0800 Message-ID: <20230617103255.20239-10-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230617103255.20239-1-yunfei.dong@mediatek.com> References: <20230617103255.20239-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,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 --- .../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 a18ba8f32d41..1a0375dd5b6d 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 { 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 a88ef9078848..4804d8531a4e 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; }; @@ -208,7 +208,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