Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1614651rdb; Sun, 19 Nov 2023 03:31:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/WdAB0wlLoXvY5pcEf9yKLHmTVTcI8GrWFuWzOCKS1F3hv74OnIwTJNrgdcEqtE8tWm3y X-Received: by 2002:a17:903:187:b0:1cf:5d59:8efc with SMTP id z7-20020a170903018700b001cf5d598efcmr465412plg.33.1700393484388; Sun, 19 Nov 2023 03:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700393484; cv=none; d=google.com; s=arc-20160816; b=etGt0gmXFy4iY4pvZgKdjkVk3ZEN0BSpZ4fjL/OaNrOnSEdz1y2ef2HIxP8ddh7Xg8 gucmfw7oBX9rRGDCMtvYF1uyMyLoJp3Znd6zMn01s9Epfmlxy0RQcXtrF4HPzHIM+pDs XQ/FnmaqMEEUlG45U4XECD6BEca5xbzoqzFCrNtsUqLvVZBVwHWvwjzODLMSIFSwF7sC aIHqlZMjNQl4Bpu3e/ETRSMKJcpFpvcWbYshdnMSGGnT37vNmkahj8X6I8/dLaglymSW GnIzDY9QTuk7eA1ehStvc/CMxRumPb/oH2QOCd6xATpv4KeD05Vr7zKq69bM48sibwPn EuSA== 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=K0wwAiC0J03WizeDNzEpg01NX4TEwJYcWCbJnZI9p2IJ7TzLHlB6ninDYaoMGhaFwf g8dXViTHOsFt3IzqKJsOToaE+IGFt48VeQaabEG83+D85l+p8iXI+Lm4foXKeFvsmgzN U7QGwH73tgB26G+Lm5Fn56ofZt8oUrM/F1ZoUk1SZVCM57lpWoDvZ1HqGxsdqjcI3Vs9 3qoWPRru8JvJCDs1j1zMXN/xAPrspRYCblURcKAQjTXh+IFiVJu+AiWHZG3Vag925sAm LsyRUH5Tr+8nWGSzLhjJDk8mD2aYror2FV8wEpqwv/DMGpNIEaAS1tI8ND8N3BFDYmXG SpIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W1fNgBpX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b4-20020a170902d50400b001c9b3c3ce7asi6123557plg.300.2023.11.19.03.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:31:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=W1fNgBpX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id CB97280755D0; Sun, 19 Nov 2023 03:30:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231560AbjKSLaG (ORCPT + 99 others); Sun, 19 Nov 2023 06:30:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231298AbjKSL3n (ORCPT ); Sun, 19 Nov 2023 06:29:43 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DA6E10FC; Sun, 19 Nov 2023 03:28:48 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9e1021dbd28so477069666b.3; Sun, 19 Nov 2023 03:28:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700393326; x=1700998126; 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=W1fNgBpX/ahU7SgsIFClqJtLpSBkujxH5re2v1pqmEUNIKs8NMYipyw58T95Elxpde tg3YF5sduyAJPsa5Gk8wYE5eWUEG3pe1A4namyDoW6APse2R/ss+bTHR4B4CM/g5Glhk gLr9QU6s1s7z+jcShhKE614FcWUUMNOrtt0o3qC+7bKSJtVppmJxK3ivM9sWfxBp7p2M l8QxdwHxUjaWsEpWBWGA2GFja4JpCMjV+KLF7kCi9FhqXTPy1BaDAhAHUmo3I3Xr4R+g Mgod73gvFfuI6DM1cY3s5MMrPpME91Ta59XQUy7Tm0ho4CKJP3j6rX7yTpZ8LZiEEE/5 J3IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700393326; x=1700998126; 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=PQpf3/0mgKmioDzjh8FEyoZG1dGHJU9UA4d4rKQLG3DqEo2E9oPYLd/s0MZQz7qWTS DaGugyZNqvDOs+uVe3mdpGpL6nyNyGd+E/W+3loCZyA/YXwenNnfrOkqFZoBYlyWafTz 3YiCfV332xuDI9FMrG5Nkkg0Ni+juLCduUF1iRBqoC5dlAaBK7cXZ854yKcuR2xxfMEo xgHFmbAkXgqPxFR9XQPPHidZK2mBZ7Hw+xRMebYZd3riMOwvAmBvsE1ZCb/56AhPvFQy bHuoGy8Un+L7kkre13HsZhNhazqBOpcu55neawuTUHBdRv35Y5autIdMjbMEpT6R+w6t Bnbw== X-Gm-Message-State: AOJu0YwVJcsDlLPWiwAbn2K+GuCEp1KgZV5CmQWI4+pQgt3nAny2mGuq kFuMemyhEX1zZThULMSQmQQ= X-Received: by 2002:a17:907:11c9:b0:9be:30c2:b8fd with SMTP id va9-20020a17090711c900b009be30c2b8fdmr3210885ejb.66.1700393326334; Sun, 19 Nov 2023 03:28:46 -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 k22-20020a1709063fd600b009f8af454d0dsm2420378ejj.112.2023.11.19.03.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:28:46 -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 12:28:24 +0100 Message-ID: <20231119112826.5115-20-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231119112826.5115-1-hkallweit1@gmail.com> References: <20231119112826.5115-1-hkallweit1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 19 Nov 2023 03:30:16 -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;