Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp214624rdh; Thu, 23 Nov 2023 01:43:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IHroKskIxxeyPhjaKJ1C+pwyGMnxd/pm3qdAjYDV5VB56rwOiwJCHk7/8M/TjHJj/UCxNVG X-Received: by 2002:a05:6830:e15:b0:6d6:4e53:c81a with SMTP id do21-20020a0568300e1500b006d64e53c81amr5743239otb.29.1700732579990; Thu, 23 Nov 2023 01:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700732579; cv=none; d=google.com; s=arc-20160816; b=N7n4L21Ng60lHAyXQjeZcvgrSopK2YUx0IeLZfLaBjDmAZgKqgmn+23nusif2OHFCV 9SGLxl2B60Is+HXFmXuN63vBNl5C8izAokRsnBGTLxLDgRFQN9R2ZQ2ZA88FhDCpAa+c Nrrl0y4JMBtLxpzLDU7aXuzszel/rxcjivJfQfz7tpykRai0MVAIjloU/GzucubA1zC+ 0c39eGHIqG++xwuI6opRzbr0mhxT0o0Dnnt8p5GMGZENnfADagUDz60UiUHL1Iba+uW4 qdrPog2jK/aCiH8hQIP/G+vnXAYCTBIWldxUJ+8fNohKxinocPWpYhX+6p34TJRE/vB3 g0rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aq+Z35kBN2Z5WfXGmAWrEgYrcQFVHuODhyHjoCApg/g=; fh=BK235+dYWgs2jQHS5VC0RMehBX1gw3n0Pw42cK0iELw=; b=XjTJ7ytoOMwhR07H3UXvdPfu2XZmG++ZutDHp57w0SXiF+JfmN7P7FmHKiCjUzCk04 h4rvZ+TSdh2nm05/GSovd7pxKF+RmDikmypLjGeREAKrCwmDDDygTo/Q8fXKJ41d3Fai TqCtUSXIVwTzRuUHSWAj0HE41eMoryenSrrI/WmFfHWVYvF+4u4Rvi+IKnPpGjNAf424 7SoUx2CylRrc+Yj06XabrUQR7FI2IBI1zWnXsMpYppHwET5D4NUVTL9a3U2VsqB5kchj /RyPVN8ng6QfyPFOo5CrSDLtEQKKf53w2CMH/tRoR6AJEM3NlbpgjqW9/JIZtLbZBQWK tvDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="XXuguf7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id r35-20020a635d23000000b005c283e45927si937428pgb.393.2023.11.23.01.42.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:42:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="XXuguf7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5CE0A8083487; Thu, 23 Nov 2023 01:42:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234394AbjKWJm1 (ORCPT + 99 others); Thu, 23 Nov 2023 04:42:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235124AbjKWJlF (ORCPT ); Thu, 23 Nov 2023 04:41:05 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D7910E2; Thu, 23 Nov 2023 01:41:02 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a02d12a2444so84052666b.3; Thu, 23 Nov 2023 01:41:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700732461; x=1701337261; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aq+Z35kBN2Z5WfXGmAWrEgYrcQFVHuODhyHjoCApg/g=; b=XXuguf7/roAvoYRK64dg8BBV5JIWYbblgPznxzJX3RmGcQ46NYIPyK2lWg4+Pl2J2Z Vl7gkFH6jmK3ebcSJkSTTXJJq60Ks1yQwIf4BtH3E9nNJ48NUiFvo0rmwykx5jAFK5gS Okhgt9fufdzXewzx1TqgoZ5fcxYA8aA3+DBvu1gtebEu9mdO2mok8Qpz75tKXNEOV9g6 l6ltYmil3aqI1sk/SZYbovTXRmHqwu08AC+ezbpFmfTC7vPmtjoR77OUADJ9z9fq1nz/ JV930W+TxK6hbkA2q0fMFLt9+MM9P25MqWy0dw6CvMjDeDkCj4rHZoO/yYWKYwBeWERZ nPQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700732461; x=1701337261; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aq+Z35kBN2Z5WfXGmAWrEgYrcQFVHuODhyHjoCApg/g=; b=SWiur/BQvFO6XKhRUFPzoQuLXt4rhC110QkhCFH1xj8Gi6coSrEPPbbz0SMme6DAs9 919A7XfXthpVSc2QdZL2cOJEzu/oIYslay4/T4YiX2KACWxp4LxdpvwEB1PbLwvonEHx P1UTDCiQQhDSbvMxHhTSfxGEHOBHQKzP3lkv82NQJj9kYvy0h7DVyIdzxNN9kBbPxt/m DvINbRB4hwh3s5x+GIuW45mfWa1O0pbTdtCCbXF/ipBP1ydBraQrbiXBuaU7+6xfqLOn z9BfkVBhcrdV7EQUIleandatVARlWdmfZiRa1sBOwPibn8eWNopX/lLt0n+6fT6aDWGg Sp3A== X-Gm-Message-State: AOJu0Yyuyh2vbk4c63cEV9piZRSUH6klpsgsYk9D0v+j4UgyYAH19mAc /oy6uV7/0ujQp2WxRrWuFiM= X-Received: by 2002:a17:906:74c7:b0:a01:8957:7c75 with SMTP id z7-20020a17090674c700b00a0189577c75mr3683442ejl.11.1700732461099; Thu, 23 Nov 2023 01:41:01 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-c0f2-3200-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:c0f2:3200:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id s9-20020a1709066c8900b009e5ce1acb01sm546199ejr.103.2023.11.23.01.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:41:00 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Maarten Lankhorst Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alex Deucher Subject: [PATCH v5 19/20] drivers/gpu/drm/display: remove I2C_CLASS_DDC support Date: Thu, 23 Nov 2023 10:40:39 +0100 Message-ID: <20231123094040.592-20-hkallweit1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231123094040.592-1-hkallweit1@gmail.com> References: <20231123094040.592-1-hkallweit1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 01:42:57 -0800 (PST) After removal of the legacy EEPROM driver and I2C_CLASS_DDC support in olpc_dcon there's no i2c client driver left supporting I2C_CLASS_DDC. Class-based device auto-detection is a legacy mechanism and shouldn't be used in new code. So we can remove this class completely now. Preferably this series should be applied via the i2c tree. Acked-by: Alex Deucher Acked-by: Thomas Zimmermann Signed-off-by: Heiner Kallweit --- drivers/gpu/drm/display/drm_dp_helper.c | 1 - drivers/gpu/drm/display/drm_dp_mst_topology.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c index f3680f4e6..ac901f4b4 100644 --- a/drivers/gpu/drm/display/drm_dp_helper.c +++ b/drivers/gpu/drm/display/drm_dp_helper.c @@ -2102,7 +2102,6 @@ int drm_dp_aux_register(struct drm_dp_aux *aux) if (!aux->ddc.algo) drm_dp_aux_init(aux); - aux->ddc.class = I2C_CLASS_DDC; aux->ddc.owner = THIS_MODULE; aux->ddc.dev.parent = aux->dev; diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c index 0e0d0e76d..4376e2c1f 100644 --- a/drivers/gpu/drm/display/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c @@ -5803,7 +5803,6 @@ static int drm_dp_mst_register_i2c_bus(struct drm_dp_mst_port *port) aux->ddc.algo_data = aux; aux->ddc.retries = 3; - aux->ddc.class = I2C_CLASS_DDC; aux->ddc.owner = THIS_MODULE; /* FIXME: set the kdev of the port's connector as parent */ aux->ddc.dev.parent = parent_dev;