Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp5690pxa; Mon, 3 Aug 2020 20:42:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmCRQczbRPCFcpTaaiplUhur/1iEnrV931Hqb/wV3xAshmp/SBSlrH7R11xMEuo0OP65jE X-Received: by 2002:a05:6402:1ad1:: with SMTP id ba17mr18137333edb.119.1596512573846; Mon, 03 Aug 2020 20:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596512573; cv=none; d=google.com; s=arc-20160816; b=wt/ud6wB6S2Vxb+tFt166yDbBOAqycG3erWkHFBnXBMOzyObQAEoyA0y5sAqhfyCyo LZiFWxdzvld6q6/82ZWn8DIieWCHCcHoaEBQY/9WYMi5CfYle9MauRNQqHsfw6twx9sT oHEm2vxeXQjK/S/Ez9yNAazRu5nyzQ5IOXjRvu1u0T5ypLcBLlFGx/UHhsR8HrcUsz2I lMQDAsBcCh6JELNe9+AkDpscvf0rV/coigDycDtPpjYrz0Z7N8L8+Cy4XBpWwin6FPj8 BC6g4JSwkBuSnMcmuAySFK8RAJOIBNUQFQM2QiXAEXmWHe9f8Xy0mWQSw+8Bsy9xTLVX dsRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E31NtkU7cwgx88TDoj5iGe33FhVu7C9Nn6yh9IjZLRc=; b=YPdtbqwdSJka+fEywDL+TwrdRgjNXSGAFk1J4AhTLaAIZzSw/5Q3OkdWgqnBKmj1m6 9r7Qdo5Tt9UbBfIWX/Yrix6L7JUbtjGWt8W94lBDotxgDTzJS2XxI51SFkNIFwzYLWSs 2rYs0Gmu2SB7uz8jnlQML9bkF0nBtK/H+7SFtMBodxCpoezSQ6spLRpWJ+EM8OuhKmZc KjZ6h7iE4W04lETPc99DkE8hewRsXYlh/EYsdHojh4ixU2h5I1uC1M72ZD/33Csjc6Av ECMQOF1zxDAQ3Wv2MPz0VDqb/uql95Ckwc5iatjNkRKEwfoYfOA6pwHAQAiEfY9t72Ma vH6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=guo3QLpO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si11938435edv.238.2020.08.03.20.42.31; Mon, 03 Aug 2020 20:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=guo3QLpO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730419AbgHDDmI (ORCPT + 99 others); Mon, 3 Aug 2020 23:42:08 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33445 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729757AbgHDDmD (ORCPT ); Mon, 3 Aug 2020 23:42:03 -0400 X-UUID: 5ad10426304b42058339ec148ac19739-20200804 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=E31NtkU7cwgx88TDoj5iGe33FhVu7C9Nn6yh9IjZLRc=; b=guo3QLpOnMhCClHb2Ifvq2HGGPyfq15ldTHhjiW+VCV3uW1+nccJq36QVmg58G6aayC2YoENK4jicoK6fQ9IHbmROqNt2b1uixmf5OtTvcQdnnsxOLCaHfchjSFmuSupOFkSeiuxKWRI9sTNVR7wBZPD9ELzg6Nh/24Qp0/nHt8=; X-UUID: 5ad10426304b42058339ec148ac19739-20200804 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 953460291; Tue, 04 Aug 2020 11:41:59 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 4 Aug 2020 11:41:58 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 4 Aug 2020 11:41:57 +0800 From: Xia Jiang To: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Rick Chang CC: , , , , , Marek Szyprowski , Tomasz Figa , , , , , , Xia Jiang Subject: [PATCH v11 14/28] media: platform: Delete redundant code and add annotation for an enum Date: Tue, 4 Aug 2020 11:40:48 +0800 Message-ID: <20200804034102.22983-15-xia.jiang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200804034102.22983-1-xia.jiang@mediatek.com> References: <20200804034102.22983-1-xia.jiang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RGVsZXRlIHVudXNlZCBtZW1iZXIgdmFyaWFibGVzIGFubm90YXRpb24uDQpEZWxldGUgdW51c2Vk IHZhcmlhYmxlIGRlZmluaXRpb24uDQpEZWxldGUgcmVkdW5kYW50IGxvZyBwcmludCwgYmVjYXVz ZSBWNEwyIGRlYn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