Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp475985ybg; Mon, 1 Jun 2020 06:27:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwogU5TsaIHmLjcrHb79ZleBm39qRjKK5NpHI6im61j15zSchFRBjTwVzOsJY2P7hKUpgNn X-Received: by 2002:aa7:d957:: with SMTP id l23mr10078689eds.206.1591018065098; Mon, 01 Jun 2020 06:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591018065; cv=none; d=google.com; s=arc-20160816; b=l3gZU2XAAy2rNCRRUymQbUVhzZqSjrJk4VL/oNz0f8zKv00vlm6xBsQIQQhWtPP1gq cD2t7IVLaeVJLwRESsQ07wDmkPIBLAlBwbT7J2PkHO9CXDdQd3WdlBaCga0w1hVYsniO 4c+AzuZDHk6+/WVuSSj/SH7+iLs1GlfMzNXOoEHnQagmbSQjWKUQIXjXoYocIf4WJcEx 4S6qG1q4l59pnohjb6B/vbwUb1ENPRcs5EYXuTr5233tK0CCgX5Zq8eoGARnqh6RKn8A kUquMdoKsugEzrWRW37emo1fgtolvG+iWrjVhlBSF+ZV+TjeyzHqY365thAmBKzlAAO/ 6iLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:cc:to:subject:from:dkim-signature :dkim-filter; bh=b6PizGUrN2vwV0+zYxApQ090eDAZeWVpfmcwO7qUlbw=; b=V/o7rV8kC/LsjuJiME87PWeR6DjIIHTLIIJctEPKRegDxWQtafybpZWk9fuCk0evNe aQ5WXlirW//b/lnzg/TIcyRAcRKOaAN12G6SVa5Ib8BA8lheAi6gIYlCWIM++2YDbraL eTvIc6q/B0Rc62tYY3AnvM0nzvG1JLDkixSnxJFx9XzJWo6beWV2K6Jc5dbKhwWBH7ug s3qoqz4UD8M+MxymQYivpFXRTCM23PbE6HuIDSpPJyNwku1WSvAgIZFP3whVNYNtFDvI Tqnd0+Lv0Eu+iGTcfV6WN6Yf3UWZuVlNooASl2/mTyN3mER8z6issUZMZtsUf9LY8uVt e1LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FS6hgidw; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si629286eja.652.2020.06.01.06.27.22; Mon, 01 Jun 2020 06:27:45 -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=@samsung.com header.s=mail20170921 header.b=FS6hgidw; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727089AbgFANZX (ORCPT + 99 others); Mon, 1 Jun 2020 09:25:23 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44685 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgFANZU (ORCPT ); Mon, 1 Jun 2020 09:25:20 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200601132519euoutp0206e282e21663340cdf5ab713313e38f8~Ubl40l9-41973219732euoutp02X for ; Mon, 1 Jun 2020 13:25:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200601132519euoutp0206e282e21663340cdf5ab713313e38f8~Ubl40l9-41973219732euoutp02X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1591017919; bh=b6PizGUrN2vwV0+zYxApQ090eDAZeWVpfmcwO7qUlbw=; h=From:Subject:To:Cc:Date:In-Reply-To:References:From; b=FS6hgidwz7R7HYd4fbCYjlwmMnJl284zryABZMu4XyqfIN9DI/J60b7b81OvFwfmQ FpZHsUaRddnut23JTcNdI7l3baw+LOrYk3WVuytMvsQe7uUcl/XxVuorFHnSIqmnrD bcIrU9Wd7fMUBIQVnq8syv1AYK2rIhaZ3Ebdoe78= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200601132519eucas1p258f4e1b33276abd20b48c1009001aa3d~Ubl4oyA242302023020eucas1p2f; Mon, 1 Jun 2020 13:25:19 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id BE.A6.60698.EB105DE5; Mon, 1 Jun 2020 14:25:18 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200601132518eucas1p2c0a9153ab4f1ce93604ebaa73b16a74a~Ubl4LXDHO2515325153eucas1p2j; Mon, 1 Jun 2020 13:25:18 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200601132518eusmtrp12d11f07519c739f596f9b0b5b07621cd~Ubl4KvQig2270722707eusmtrp1c; Mon, 1 Jun 2020 13:25:18 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-00-5ed501bea4a6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 5E.DB.08375.EB105DE5; Mon, 1 Jun 2020 14:25:18 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200601132518eusmtip2c8670c4f489920546352ea97e17b2221~Ubl3rMcVi1577715777eusmtip2X; Mon, 1 Jun 2020 13:25:17 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: Re: [PATCH] drivers/video: cleanup coding style in video a bit To: Bernard Zhao Cc: Uma Shankar , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Shashank Sharma , Laurent Pinchart , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com Message-ID: Date: Mon, 1 Jun 2020 15:25:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200427080530.3234-1-bernard@vivo.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SaUhUYRTlm/fmzZuxkedoeLEwGiVQSAuLHpaaETgFhf4Tcxv1uZCONs8d S8UlM7XMH6JpbpFmmGY1lqmkuTaa4IIpLi0aKblvaKPkzBvJf+eeew7nHrgkJungm5EhikhG qZCHSgkRrurc6j/Zgoa9T82n2tMl7ZMYXfZ9AqOH1hcJ+l7uUwHdnbPEpwcbiwg6fzuLT6dM 5/Dpvt5OnN7cLeNdFMmaN0px2eOMAr6sommWJ3vS4yabut/Fk63Wm8vqVjIwV4GH6EIAExoS zShtHX1FwckLAygizSC2ZmYCJaE0YSYSkkCdgey3tUQmEpESqgrByGAKnxvWEAz/aNUPqwh+ Nhfj+5ac5F7ELSoRtKvX9ap5BJszuTytiqDsIfduNdJiY8oFyj6kYlpsQlnAyPKQzoBRGzxo 3CnRicSUIyQvqXQYpyyhYvKFznCYcoeVb5/4nMYIegqmdWcIqbMw2z6sC8MoUxibLtHjY9Aw X4RpA4AaE4CqqFXA3X0Zlj9n6jsYw1zXGz1/FNR5WThneIlgJ+O33t2AoDJvl+BU52H8y/Ye JvcirKC20Z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5qcWHGE2B npvILCWanA9MIXkl8YamhuYWlobmxubGZhZK4rwdAgdjhATSE0tSs1NTC1KLYPqYODilGhi5 JOIY/Q6tjw1v9Bdmjt3NfL6k5cfXvTNe9rG43HxhXvmzwjokrjxvWuLi3nMVlxVuPFrj+GrC iTlTtSauXvuiZtejjw8CfGLz/3t8E7mf/0X36Fe+fxvfsh5onKQXtNWp/8qNbw8+SkjwfWee MuP+JcXqWr/tNaGdX6I1512dzOCva9cWa/BAiaU4I9FQi7moOBEAzmoWtOkCAAA= X-CMS-MailID: 20200601132518eucas1p2c0a9153ab4f1ce93604ebaa73b16a74a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200427080542eucas1p172bdcfd22affc288ec1ceaadf0dad2b0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200427080542eucas1p172bdcfd22affc288ec1ceaadf0dad2b0 References: <20200427080530.3234-1-bernard@vivo.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/27/20 10:05 AM, Bernard Zhao wrote: > Eliminate the magic numbers, add vender infoframe size macro > like other hdmi modules. > > Signed-off-by: Bernard Zhao Applied to drm-misc-next tree (patch should show up in v5.9), thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > drivers/video/hdmi.c | 2 +- > include/linux/hdmi.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c > index 856a8c4e84a2..f693076f2e5f 100644 > --- a/drivers/video/hdmi.c > +++ b/drivers/video/hdmi.c > @@ -495,7 +495,7 @@ int hdmi_vendor_infoframe_init(struct hdmi_vendor_infoframe *frame) > * value > */ > frame->s3d_struct = HDMI_3D_STRUCTURE_INVALID; > - frame->length = 4; > + frame->length = HDMI_VENDOR_INFOFRAME_SIZE; > > return 0; > } > diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h > index 9613d796cfb1..ff25aeb95ee4 100644 > --- a/include/linux/hdmi.h > +++ b/include/linux/hdmi.h > @@ -57,6 +57,7 @@ enum hdmi_infoframe_type { > #define HDMI_SPD_INFOFRAME_SIZE 25 > #define HDMI_AUDIO_INFOFRAME_SIZE 10 > #define HDMI_DRM_INFOFRAME_SIZE 26 > +#define HDMI_VENDOR_INFOFRAME_SIZE 4 > > #define HDMI_INFOFRAME_SIZE(type) \ > (HDMI_INFOFRAME_HEADER_SIZE + HDMI_ ## type ## _INFOFRAME_SIZE) >