Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2120488ybi; Sun, 9 Jun 2019 04:18:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfgBpaZ9So8jOtsFuMq08BNz4ZsFtxnVDluoL5iZ5LC+j9+S3KBjtz1jVH2pyhO8WzbiNu X-Received: by 2002:aa7:83d4:: with SMTP id j20mr70779592pfn.90.1560079118862; Sun, 09 Jun 2019 04:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560079118; cv=none; d=google.com; s=arc-20160816; b=UevLPtCtt7wNWvAPuJCb5mvFnelSTwM+fo1Mo5xi95jhOxzKGIzkN6PFP7A+sxA021 a9vUvj5NBTO/qOzprgqgdRHvsDagw0Ki4i5hjl4zSXX4sqIPO2ZdGv6wOYAvh0D4FGbh BQR+nlXOHQoA6wxcRkLYVTuSKsTnmgH3RVCTeUxBUv6xm9koKTAAAVoTrNPo1HMOMEyf UroIVO5Zpv7ZVv1lJnW2qda6zXQI8fcmJ72/BheZe78FT0j1/Hs3U+iuFHaHL5qMdudc NzotCuL1NTIdKivTDPM+9pJXHuluk09DGk2fPAD8NnQ/Of0hg7q6t4Xzm63jAPIFT6yb HwvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8FyirgmIOVGjxKR23YU3ynYFiijW6jq/vsR8Wan+oa8=; b=fBHeyFn63i2kXEXwK9PqYb6a1EeQ8+1TxDKZ6tPEjNAIyL/bWOm8sqw5sSTIcTJQri nc0ESkrJ34GQUVDQZozERp2Fih7be33lPNrlGbY2Ouz7x3KLALGwAJr9jYyHwysTII5E TmLgh2f3KLbwR7kvywQ5ZlsU7qVd9VIEDt/s9XwxA56PLHOYp2U2aGyMsgBpx5AwICTS QOGQoWVlhoOZ2CpQYU1hxsqSYwcrWd2E3ZmHY4J8rTgRyahOj55gYYm9JFOQ5PCIzyn8 c//+7PfwW/XlvFzsasuaX4mjIDa4DmawdgaA0QmPp7Y3evjb40f2ouRE0FdZAHHSLlIZ 27iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si6990315pgb.333.2019.06.09.04.18.22; Sun, 09 Jun 2019 04:18:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728425AbfFILHk (ORCPT + 99 others); Sun, 9 Jun 2019 07:07:40 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:58726 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728095AbfFILHj (ORCPT ); Sun, 9 Jun 2019 07:07:39 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 5123C2002D; Sun, 9 Jun 2019 13:07:35 +0200 (CEST) Date: Sun, 9 Jun 2019 13:07:33 +0200 From: Sam Ravnborg To: Jitao Shi Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , linux-pwm@vger.kernel.org, David Airlie , Matthias Brugger , stonea168@163.com, dri-devel@lists.freedesktop.org, Andy Yan , Ajay Kumar , Vincent Palatin , cawa.cheng@mediatek.com, Russell King , Thierry Reding , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, linux-arm-kernel@lists.infradead.org, Rahul Sharma , srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, Sascha Hauer , Sean Paul Subject: Re: [2/2] drm/panel: support for BOE tv101wum-n16 wuxga dsi video mode panel Message-ID: <20190609110733.GD28935@ravnborg.org> References: <20190608070230.55381-1-jitao.shi@mediatek.com> <20190608070230.55381-2-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608070230.55381-2-jitao.shi@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=syvv3YeMXAyozcvYpBgA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jitao. > + > +enum dsi_cmd_type { > + INIT_GENENIC_CMD, > + INIT_DCS_CMD, > + DELAY_CMD, > +}; > + > +struct panel_init_cmd { > + enum dsi_cmd_type type; > + size_t len; > + const char *data; > +}; > + > +#define _INIT_CMD(...) { \ > + .type = INIT_GENENIC_CMD,\ > + .len = sizeof((char[]){__VA_ARGS__}), \ > + .data = (char[]){__VA_ARGS__} } This macro is not used - so all code around INIT_GENENIC_CMD can be deleted. Sam