Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp495535ybt; Wed, 1 Jul 2020 03:33:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXyIiNGDGuHG0MZGDqp6eioUgJY9SVf652Faa7vyI/eUE0cFB6SZmRkt/OwKx+fqrxb2nU X-Received: by 2002:a17:906:784c:: with SMTP id p12mr22197512ejm.123.1593599598039; Wed, 01 Jul 2020 03:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593599598; cv=none; d=google.com; s=arc-20160816; b=jtNtYTtukucYGu6YIEVPRXP6PftnNPzLcesM0jAwQQq7asv6HmSMN2utLNrqZiKLGi UNvEPXa3da/LUOV15DfZnfE0WMO/4c8p3vnPlk9zWSzbGP/Zl3X8FRVqU5u9JoJkt9A+ UQLLi5s4HLJR4anLBgPmnNzrf31aazLYD5TPXi39IjSKJwfi/GC/h9A++CVwr58HQ66U 9jEsCsAxvZ8rniZuaTod9GCWM0zmog6+ZXRaYDCdO1lYxYp2U6NZ/vYQn0kmHTINaKoF Ceob6r8ODL5FATihHDRTkar/YSlf22NfrwZEGFyZk9L8p9qMH9Qf8MfTvxb07YGBeDb6 SqNA== 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=ZSi83RMlDIzx7AwtNwLVc4IawK9sUiCoVQ/UUJtZ2zw=; b=lD1Bg5LSiiJDk7p8y5EMdCOMxN/hCKWw+X07cZ69D0vpuNnXsYZuRhkiGxhcD9Bzzn /HOP7OjSMYcjsVuge9iCJEX9VaBzKjMvvenTCmiakvuw1IC0SJkSd0STZ2NF76YAxgp9 l55z0teYKhEF+0UQXutMDHnwEifljxprP7bM/AG8OQM6Lv00mb9Y5OLbT2SXxSgafuAa E+T1AbJSPNcJsAPeX+fCoWHHMqlTG8J0YCZ8rfzWFo503FmxjwR9+pXYp4vQQIwzx7AA gGDjpp6TDgmF7oJa+B5Z8t4rdPqnb/aFJfw0Xa1F+Xlc39PabBp/eCmaZsiq8pBQoj05 kaag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=SS6uwjGR; 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=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd6si3484946ejb.326.2020.07.01.03.32.54; Wed, 01 Jul 2020 03:33:18 -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=@megous.com header.s=mail header.b=SS6uwjGR; 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=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730088AbgGAKb6 (ORCPT + 99 others); Wed, 1 Jul 2020 06:31:58 -0400 Received: from vps.xff.cz ([195.181.215.36]:42404 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729995AbgGAKbj (ORCPT ); Wed, 1 Jul 2020 06:31:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593599491; bh=OhZy2sUOGgc84GZVOn8gtKD1xJgSn3thWhMhtz17alE=; h=From:To:Cc:Subject:Date:References:From; b=SS6uwjGRbSF7cZEqVs4Vqmzjt5W2WnLEI3A1besARuuR0p6Ea+sbc+CS5USHLn5l5 sTetzsqoWOsi1F60wGrfiSA9X+6o6X1vNiQ3z7ro44djtv4YJMcqCZTs1Z96zs8o8x 6jMZxnQ9Ya8ecd4xoB0jmR3swb+vyE8BaT/LJTfU= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , =?UTF-8?q?Guido=20G=C3=BCnther?= , Purism Kernel Team , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Icenowy Zheng Cc: Ondrej Jirman , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah Subject: [PATCH v6 06/13] drm/panel: st7703: Prepare for supporting multiple panels Date: Wed, 1 Jul 2020 12:31:19 +0200 Message-Id: <20200701103126.1512615-7-megous@megous.com> In-Reply-To: <20200701103126.1512615-1-megous@megous.com> References: <20200701103126.1512615-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Parametrize the driver so that it can support more panels based on st7703 controller. Signed-off-by: Ondrej Jirman Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 43 +++++++++++++------ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c index 511af659f273..08cbc316266c 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include