Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1282903rdb; Sat, 18 Nov 2023 09:43:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0qWIEg+RAKN3cWdo6D0LwtFF6qElmILrWVUZuyal1mITLgr4Ku1Zkmre3fbYH/esyhr8j X-Received: by 2002:a17:902:6b04:b0:1ce:64fb:e4f6 with SMTP id o4-20020a1709026b0400b001ce64fbe4f6mr2290341plk.15.1700329413893; Sat, 18 Nov 2023 09:43:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700329413; cv=none; d=google.com; s=arc-20160816; b=brNCdwESSqx8guxQEdVNxrIFpHmOS47Vs2okw5knYGY/kVaGiTX3xSocna0r13oMHY mQdv6+zB03Q8Zb0oCZTzBgorlzPjHjnpu8mIsNj+x08yPTY0/hnXvmrc6hOfoOd3+C8M Sjjg7nBPy/IN80uYT0hSRlIP8IG1imfNRjmOo3Pqizamj6QXyh33Co7lxi64h5viseuI CWPLsW4jjIOopsopcZVzwij4hObo5wXfdi/k4YSXlqbLRx4Do6vQgc6kxqLInlzjHppC wYhX+58rnu/ambggvxYj41vAOd37LFKJ2B5gkKtWM6CnH0uYSlAzf7SVBJkvMLRJYhNP OoDQ== 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=aXnYU9L0SxzpQBJjG8833LUnrTfJuWwdCW2h6rtJH0c=; fh=40OJtQZxLbCxtgY4qqVW8lu+7Suz7QdTwfL3TuYDWfA=; b=Yl2Wte28LOf2EimMWkCSbkui4AXP+/QbPqs0dwzjjQ0VDNOdLQyAuYy7ZU8eIh7wZZ n2ZbwjjMaVZJgG34nEeAHj4O8GtZsRtXE/Lbm09DlkIJDu3bqB2TWU2dp5dkTN6tSIcy h8D8Qh4Xvm5e3buvmtTtSDcGLQuoCTX9lPYzysejuwhCJkZpLWtw6eURvsTVH/MP6ptW rkf8/kmtRdmuN2Sb3Th+obOxCE+/WydjZHHTejp2HN21EDx5hJ+DqtP27QUC5j+9xFur GPp1jkjGlOiqEpdcQo5af8FYDZg4VB4FLh/tu8Sr/qXZYsUQTZkokc6MF0uZhzj+OHmR sHhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EWssYaZh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u6-20020a170902bf4600b001cc662945e1si4337288pls.589.2023.11.18.09.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:43:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EWssYaZh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 DE9D88050918; Sat, 18 Nov 2023 09:43:23 -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 S230502AbjKRRmv (ORCPT + 99 others); Sat, 18 Nov 2023 12:42:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbjKRRmi (ORCPT ); Sat, 18 Nov 2023 12:42:38 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD41DC0; Sat, 18 Nov 2023 09:42:34 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40a4848c6e1so3849745e9.1; Sat, 18 Nov 2023 09:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700329353; x=1700934153; 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=aXnYU9L0SxzpQBJjG8833LUnrTfJuWwdCW2h6rtJH0c=; b=EWssYaZhCnS7AhXOElNbBA9dD8+DJA+frz4w2qhg1j3zs1NlhgKxNzW6SBlQaIKo+t MrUUW2VH0RH76d01ZqNrh2Jr8lD6D3+m7LOVUD3iRiJ37ysMj+qrYHZxCdJaStCIEFOL Ho7WtLD7xJXlApOLcKsbii4XUSQPRilBXXPXEhs/N3CV69d66BFvmRwGeZTfb09LtuPO dVZ2L8q+PqF88AT15oItBUJEfyw5nIZl2o+XVFLCYnDGCwuMwzt6mDVxpsVMXpFN7rix cbuZUldH1L9aefoNWi14bMGhvE2GJZKyAI0R85lv0q4HIdrEL9Y+quoGVnmmxiakfXLW Lk9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700329353; x=1700934153; 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=aXnYU9L0SxzpQBJjG8833LUnrTfJuWwdCW2h6rtJH0c=; b=dem/CAlpSz37uuFGezivk1ApDvL9IFd6B8TX7rB2Ing+xwwbdC62dwieIgX4FksKff YJofNvRDq2OaKaaAq5PSBJ4MDoGDLb36NhuliLZeGBknSqXEhTN6+owpXvyFZQhURs31 g2ylM3cqYVRoZPVRnDdroJGU0sj9ghCbBVsjJ1rByXed7LyIG0LcNL6s4xZ6/EdDBANF cU9nMAeaI4W8ooHJo1G7brYwU4engXfLbpaX3UtyY/UQvr0ZrykeOiBSlvCSwZ6UYudp 3N7OScbzekAIczS2NdM9HYFsGtXIcRvYIrQCAAWfeMR2olT4zF7WOZbxhNE7zY6ERmso jxRA== X-Gm-Message-State: AOJu0Yy31aTjASR1wtV6GNoJM30Y3wcsWjgExzywO+TSJjzd9blq3iZf +C5WBND3kC27qPALpZIIhiI= X-Received: by 2002:a05:600c:1f94:b0:408:4160:1528 with SMTP id je20-20020a05600c1f9400b0040841601528mr2146365wmb.30.1700329352609; Sat, 18 Nov 2023 09:42:32 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-77bf-8300-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:77bf:8300:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id y10-20020a05600c340a00b004068de50c64sm6964211wmp.46.2023.11.18.09.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:42:32 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Alex Deucher Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 07/20] drivers/gpu/drm: remove I2C_CLASS_DDC support Date: Sat, 18 Nov 2023 18:42:07 +0100 Message-ID: <20231118174221.851-8-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231118174221.851-1-hkallweit1@gmail.com> References: <20231118174221.851-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]); Sat, 18 Nov 2023 09:43:24 -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/amd/amdgpu/amdgpu_i2c.c | 1 - drivers/gpu/drm/radeon/radeon_i2c.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c index 82608df43..d79cb13e1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c @@ -175,7 +175,6 @@ struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_device *dev, i2c->rec = *rec; i2c->adapter.owner = THIS_MODULE; - i2c->adapter.class = I2C_CLASS_DDC; i2c->adapter.dev.parent = dev->dev; i2c->dev = dev; i2c_set_adapdata(&i2c->adapter, i2c); diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c index 314d066e6..3d174390a 100644 --- a/drivers/gpu/drm/radeon/radeon_i2c.c +++ b/drivers/gpu/drm/radeon/radeon_i2c.c @@ -918,7 +918,6 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev, i2c->rec = *rec; i2c->adapter.owner = THIS_MODULE; - i2c->adapter.class = I2C_CLASS_DDC; i2c->adapter.dev.parent = dev->dev; i2c->dev = dev; i2c_set_adapdata(&i2c->adapter, i2c);