Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1590097rdb; Sun, 19 Nov 2023 02:16:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvODTs6jxX7dv3tl9n2BIXSsqyYzj6BQGqFAJcPHiYROKPtO2Ev0cL7Yf3tdWZSVDL9en3 X-Received: by 2002:a05:6808:159e:b0:3b2:ea7c:c402 with SMTP id t30-20020a056808159e00b003b2ea7cc402mr7246415oiw.25.1700388996070; Sun, 19 Nov 2023 02:16:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700388996; cv=none; d=google.com; s=arc-20160816; b=DmySafnK9pL0zX0+PKKEzD3KRVvtP5ieZu0RKekV4ehfLNsizbcY9EtkW8kXGN+RNm g2gZnsttenGr8CpY2qBn7Pr5Yn/kMGyJ6RXffoWEI/mqrDo0xp+JnXsvVKe9dXEx+xzh 73WPD7SuYvjzwI2cpSvUI42fwB3PUskkrxAWFSv2giXDQYCuDN07bklCrQLs3F2zPPDv LHKWSUeabVqCKi+xlYryIwvEXEvc8QQi6KJgfET6ksli/gl9cGzgs6vfc0dftssN/f6Q i5zHayZ0NevAxJttlceTDxQDkCLK3DClYAl73XKdpM2nbpZ02Lj77O9DF5cU93i2kIeV an2w== 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=GFB7iCk0Bd2syBjc9Ptoymcq6fnpGc3VauDL49PiFhg=; fh=BK235+dYWgs2jQHS5VC0RMehBX1gw3n0Pw42cK0iELw=; b=mykSaWcsZqyHXFPECZ3jwt1F9DzpIaHJfyxiwazVOTarwY0udEjZlP66CnYJKHwFr9 rA48o4IieeMZpLt7XYSdAhU/yUtXB+GHrRkOkBqnvR1JfMi2F1UIxMH0baP2azgs4mp9 4tlGKstiSMTwDhpc2gdCBJmMva12taoEFXheLMoHiCIPqRFZ2CCCU11zX1yHGdZcdGXq jovf5fmF9v57riqfeEmfAV6+4dIDAjjFT/z5iNsdjXVlwNNjqOv43fqCrqgK1bAfThj+ JJWKv1fUtJLbOZcUUEeDur1zGoFqliDjBR2moqzZjPvP5lACRGtY/SuYcTIB2r8G+S1U 3+tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hmPX9+sK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f8-20020a056a00228800b006cb75e1d713si1503061pfe.193.2023.11.19.02.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:16:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hmPX9+sK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 6F683807387D; Sun, 19 Nov 2023 02:16:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbjKSKP6 (ORCPT + 99 others); Sun, 19 Nov 2023 05:15:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231185AbjKSKPj (ORCPT ); Sun, 19 Nov 2023 05:15:39 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9384319A; Sun, 19 Nov 2023 02:15:08 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-543923af573so4899332a12.0; Sun, 19 Nov 2023 02:15:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700388907; x=1700993707; 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=GFB7iCk0Bd2syBjc9Ptoymcq6fnpGc3VauDL49PiFhg=; b=hmPX9+sKgWlC0Tb47fguc27gPBWffnzqifdF7ydKYpxQYmmmFeqer4QUAKsmqduIRE LQXmIpt2wN0L2a0wblh5q3nJa9BLvQdT+3+DcuOYTJUjnLzWFT6n/Ze+F2t2Ll914HoK 1ry3ZaKhaq3TU2e0MO1/VFIZ5zpJ+EpOKjDTOIUMpGQiDKf9l/WC1hgk7so+V2t/83Fm egW1aPHYnQXCt3tOKLAn4uSPQifG0dvluO9EMqBC51oyAeF9fj4CqYUVgwpdhZoCXhvC /xqDo7wIPgN/qUZ5pYgmurNqzXOOa+Ev81MaXrnhmRScinfQlxqsO3kx8NKRUpFFc4Ch QMiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700388907; x=1700993707; 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=GFB7iCk0Bd2syBjc9Ptoymcq6fnpGc3VauDL49PiFhg=; b=UvVmwMSWlsPXNSDk67lXrSwSwPwHN6wY5E66B1VvgklDVpEODwYPrf+vbdEpLkgGr3 7WFyh3IfD2svG7TdYLJAMXmK2OdMeqvZIBpajx8w9phJQ4eMmITanx9khEDUlguJQ7+h yw+1rIYPyaPta1Xgz+VJXh2xdLfw5zc+dyywdC0GXX9NPPfaj2ditdpQ7s2CcasrHH12 XiKJUozwS+WhpGbJB+KNc8+ZawtCsHTjspXCVfp8hJpbvpLAT7umMqm1oB/OQmilYJob S6c+n+SwXEnNVetalU3g+WRQnnqpJWQgtlFtYNlu4zDokBPqHX4mZXX/nCc+FmgzimEJ RvOQ== X-Gm-Message-State: AOJu0YzIOYmm5dxg1D1JxTAoC9FnmdOGhuR59OHkg7Dj3EB3OEacbVR6 YtNKzsdrDgK3rMztVCsqsk5kqkRRWVg4Cg== X-Received: by 2002:a17:907:9708:b0:9e5:e56b:9b7 with SMTP id jg8-20020a170907970800b009e5e56b09b7mr3842857ejc.42.1700388907007; Sun, 19 Nov 2023 02:15:07 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-bde4-3e00-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:bde4:3e00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id p20-20020a17090628d400b009928b4e3b9fsm2743581ejd.114.2023.11.19.02.15.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:15:06 -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 v3 19/20] drivers/gpu/drm/display: remove I2C_CLASS_DDC support Date: Sun, 19 Nov 2023 11:14:44 +0100 Message-ID: <20231119101445.4737-20-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231119101445.4737-1-hkallweit1@gmail.com> References: <20231119101445.4737-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 19 Nov 2023 02:16:30 -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 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;