Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1080385lqd; Thu, 25 Apr 2024 05:42:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxy0nfzZugIB2atXXlJhhD0zaJ85GFsfcyh3AOSR3wnePaxOBlbLqfHTdUzAfD0qL9nJdJOZoJGpXurTuhXFqxi9StEADRpArHT/7egw== X-Google-Smtp-Source: AGHT+IGS1Os9AQcAtoJVQP6smYrj63DDLJHa0AvRgDwzT7umLQfitQJedtKa1hPpPQWGhWJ9ZrX4 X-Received: by 2002:a50:f61b:0:b0:56f:e71b:74e3 with SMTP id c27-20020a50f61b000000b0056fe71b74e3mr4042565edn.39.1714048945592; Thu, 25 Apr 2024 05:42:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714048945; cv=pass; d=google.com; s=arc-20160816; b=ZwuhzkxUKYXRig7PQsuXpXvUcyuCR2TFBdjnLYvz1ziXfPcnoh0ijaud/e7TkLRb9y SmrtFF23zhNQYpq6WNT0Y4rxp7zqWD08a3shsXyQWWfO6P6hAW8heoi78gdfACfLAxAR K6i2vwy8HPBJqyhPuk4bEZEvjRywlSsrRxDdxFs3nMxEcT0TtSkLSvyvzSmD2whKPFQY Auw10evq+9TEI2roUj2gVDKSKIx4dw/dvn9oHV7+BR9XVZMEuJu6RdkA1wwWA+JSsRbi UjNd4EN33MjF60Z6FCLM7Yq8FNJAGHyaL/aMDOOSRMANGv7j/sZkB/PzI4w+VMDgw0HS JFeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=pInCgFiCOs4vmztOTlRiVSGK2wGsQEy1Cba/Ir0X0aQ=; fh=j+RgJgPXWT98FfbKpeaLiTvPJzOfEJahCx3CVDcwiY8=; b=kX2iUx0fb8dRam5dW/2hJyD0IHsYmyRTOSHzZ51IrURyn6K8176lF+r/zd5L1uHMfR HN/ITH14yd5+t1LSb0gUDGdl/cXiNTp4j/8elYXII98Nk6eOrYL+9jO8Xquc/IQ9Lew8 0fJUCjt/GzFSNC/HPRJZP1zPwiWt72i16uZTZfcofIU81kA0jujzTBaG2sC4abhTURW4 iYfnIE255efDV92LFdbHbjzkyU/rEVSRF5rLX8BrfJptq/BoTR4EYC7BWGMBKTw4RRzw uB0v9HIOLGojWeSBgOQDu0SiUv71/mQN2qOJAEEIFlJRrxIU08y2FfqfdjOPwC6Y1sNw YqrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ij7oVQmi; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-158535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w15-20020a50d78f000000b0057017734d61si9686038edi.185.2024.04.25.05.42.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 05:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ij7oVQmi; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-158535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 290161F231CE for ; Thu, 25 Apr 2024 12:42:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CFF41494C8; Thu, 25 Apr 2024 12:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ij7oVQmi" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC81912BF04; Thu, 25 Apr 2024 12:42:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714048937; cv=none; b=qSmrMjSpYRT0AZB+pvWBwatHSOz9OvMAl8LyZwp79AipEpF24RpgjTZHa66LXjF7qcAivHHcTMm2iEQtLtceUC4hA8ch/e7yUp/5oxq1eR6SJggwI7PhgI2hdEycPEl5NCDM34AS83Mtz/bBOhAmuQ8CTsdJHm8G4CzrL9xfTg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714048937; c=relaxed/simple; bh=Xd08opKedHrtsU4GnsZbUiXElSa9U0/jkuoALRq3DZw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ToyWAcKDUpDOJXgD/ilPJOhRwW3QLGsppQeFlg8hCAOvXGzauWE3chuw/8dOhXM7ptDJChmwqjVQzxm7T4nBJnC+iv307T7nmxZjLuP7yaXE023MTH7trvLGVbnGmlOVQQEjE/ph0LF3+kEIqjtch4VmXDSabuP8qGZMVsG6RRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ij7oVQmi; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714048936; x=1745584936; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Xd08opKedHrtsU4GnsZbUiXElSa9U0/jkuoALRq3DZw=; b=ij7oVQmixMX5go7zjoiieegSJIiC9FpzV+dECme6hc/Ce/p9yr+KwEwg aeviq23W+pogOotFYTfhpv+RkmSHC2LtRqWhviRUGIHgVOdp+9HJ/g8en 7qYtVCkZwG8tzcM7Ub8jPQfiNnX2IlhCK2aR5FY02JWkRNngrw6aXWZHT eUPO/HwLdKBpY1aXrrEDyv+Q1T/3imhWDwrYkRZ51YvgtVncDpxCXAfQ+ Dw8StnNd6mBdM+Vp6a953CbmL+kviKXosoWKOKHlrkMJzeVVlmYMo1uDx df55aTp/Rb0Y0iZNBG3aaTJTMRoMm6H7rpRw5fl5aFFeI4/0FReXTe9Ql w==; X-CSE-ConnectionGUID: ZpeM2JNFRjafSKQlzu0Zuw== X-CSE-MsgGUID: +V8ND44PRVSWylxUpLf2ow== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9555807" X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="9555807" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 05:42:15 -0700 X-CSE-ConnectionGUID: feb0LlWDTY6pGqiTfw9FeA== X-CSE-MsgGUID: i5mRVIGfShCstltnol8NSg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="62539171" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa001.jf.intel.com with ESMTP; 25 Apr 2024 05:42:12 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id EA79253E; Thu, 25 Apr 2024 15:42:10 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= , David Lechner , Helge Deller , linux-fbdev@vger.kernel.org Subject: [PATCH v1 1/1] drm/ili9341: Remove the duplicative driver Date: Thu, 25 Apr 2024 15:42:07 +0300 Message-ID: <20240425124208.2255265-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First of all, the driver was introduced when it was already two drivers available for Ilitek 9341 panels. Second, the most recent (fourth!) driver has incorporated this one and hence, when enabled, it covers the provided functionality. Taking into account the above, remove duplicative driver and make maintenance and support eaiser for everybody. Also see discussion [1] for details about Ilitek 9341 duplication code. Link: https://lore.kernel.org/r/ZXM9pG-53V4S8E2H@smile.fi.intel.com [1] Signed-off-by: Andy Shevchenko --- drivers/gpu/drm/tiny/Kconfig | 13 -- drivers/gpu/drm/tiny/Makefile | 1 - drivers/gpu/drm/tiny/ili9341.c | 253 --------------------------------- 3 files changed, 267 deletions(-) delete mode 100644 drivers/gpu/drm/tiny/ili9341.c diff --git a/drivers/gpu/drm/tiny/Kconfig b/drivers/gpu/drm/tiny/Kconfig index f6889f649bc1..2ab07bd0bb44 100644 --- a/drivers/gpu/drm/tiny/Kconfig +++ b/drivers/gpu/drm/tiny/Kconfig @@ -134,19 +134,6 @@ config TINYDRM_ILI9225 If M is selected the module will be called ili9225. -config TINYDRM_ILI9341 - tristate "DRM support for ILI9341 display panels" - depends on DRM && SPI - select DRM_KMS_HELPER - select DRM_GEM_DMA_HELPER - select DRM_MIPI_DBI - select BACKLIGHT_CLASS_DEVICE - help - DRM driver for the following Ilitek ILI9341 panels: - * YX240QV29-T 2.4" 240x320 TFT (Adafruit 2.4") - - If M is selected the module will be called ili9341. - config TINYDRM_ILI9486 tristate "DRM support for ILI9486 display panels" depends on DRM && SPI diff --git a/drivers/gpu/drm/tiny/Makefile b/drivers/gpu/drm/tiny/Makefile index 76dde89a044b..37cc9b27e79d 100644 --- a/drivers/gpu/drm/tiny/Makefile +++ b/drivers/gpu/drm/tiny/Makefile @@ -10,7 +10,6 @@ obj-$(CONFIG_DRM_SIMPLEDRM) += simpledrm.o obj-$(CONFIG_TINYDRM_HX8357D) += hx8357d.o obj-$(CONFIG_TINYDRM_ILI9163) += ili9163.o obj-$(CONFIG_TINYDRM_ILI9225) += ili9225.o -obj-$(CONFIG_TINYDRM_ILI9341) += ili9341.o obj-$(CONFIG_TINYDRM_ILI9486) += ili9486.o obj-$(CONFIG_TINYDRM_MI0283QT) += mi0283qt.o obj-$(CONFIG_TINYDRM_REPAPER) += repaper.o diff --git a/drivers/gpu/drm/tiny/ili9341.c b/drivers/gpu/drm/tiny/ili9341.c deleted file mode 100644 index 47b61c3bf145..000000000000 --- a/drivers/gpu/drm/tiny/ili9341.c +++ /dev/null @@ -1,253 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * DRM driver for Ilitek ILI9341 panels - * - * Copyright 2018 David Lechner - * - * Based on mi0283qt.c: - * Copyright 2016 Noralf Trønnes - */ - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include