Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1613952rdb; Sun, 19 Nov 2023 03:29:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGThxWKDNYlMJ5IHfaKVvn9sjeuNhAJhrlYg38MltambvcpzjxYtJML0VapIsQOhXUfVp+K X-Received: by 2002:a05:6a20:e586:b0:187:afb0:c2ed with SMTP id ng6-20020a056a20e58600b00187afb0c2edmr2669345pzb.13.1700393369648; Sun, 19 Nov 2023 03:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700393369; cv=none; d=google.com; s=arc-20160816; b=BjsH1rRIdwde7vGRfcDk30MEpV6CzJ9jEUpdCU6d8AatArwkdrjAfPfNAj/svhQazW jrBGJrt2UPQBONrspCAqQztHtqqSImVASk25wJqBoxm2Uw0s43jpEKPd+Av/yV/p1mMn f7JOJpiWvodlkQ35gbfDuhKlu8F8KlhLnm2mQJV01u2J38kiE3FFlITruMyuM2xaoV8u 4YAV2BJ8IZB+10I3rqrdfVslxM0bPFTUpE5iXzActSEMu7cwNLAD5TxEDzFQLIEIChra 9gTJmlXkHPCfqflj2QfuGCERPiC+yWZbf0uid7eAD75tm+duQibyXMRxPyVxehAQxxbR d1wA== 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=N4+vZc3zFP9GaULzzME38YIP+AQ3CkDt6x9Kcz4CMFtyGpk/anrXVfEnSvBjZl7RPD rqHJWeCg0sn/LsN25LHwvwuhJCBCI0FDfgkb8u1E9er0rJyUH4URf27LNvBKKlQXdoE9 kVVHj8ei7lwqGBbRPkETmGl4KaE2oOAX7ex9hsGQjJDml/MYuAdCWuIB1JSE3Q7XcjrR AKIjZAbCAiitZaaoN0Bn86u3kM5UOTxFlU7Jea0gMJ4GR5Uylnz9n0KnbKPET87oALfI z9hPnED8MseQYZOEEC5Z1wdZI3sHc+kZSpQ5Yi7lunYqdqOsoCi/lZLlgWHH4mjiBEBh tQyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZIHEUfjx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id b3-20020a170903228300b001cf5c99a61csi511785plh.180.2023.11.19.03.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:29:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZIHEUfjx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 2FE628057989; Sun, 19 Nov 2023 03:29:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230518AbjKSL24 (ORCPT + 99 others); Sun, 19 Nov 2023 06:28:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbjKSL2k (ORCPT ); Sun, 19 Nov 2023 06:28:40 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67069129; Sun, 19 Nov 2023 03:28:37 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-53dd3f169d8so4670468a12.3; Sun, 19 Nov 2023 03:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700393316; x=1700998116; 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=ZIHEUfjxh8WbOt7CBeHQ9B8KAefwXqAuaSdr8gS8TOQcG6C0eE/ly7RzKNwleiHg95 a4VMqzMip/ycqa+28Y35rBR0RpLZwPkq6486YXBOXvA3Ck5OcvPqJYbjouy/LG3AFhKP wrGhEwLmkf3EuIiZMJKBSlglg57AU1IT9zGgfan1JPRQqkptM48jr7wwDXeQN1GuyNhf QGf+dFYnlPwZTXAsuiQ6nv0GbAmliQezCXPaBHS3O3YQSgvzNbP3Vhe1KIBCyYqntY+V 2sYxkXmXRvui8Mq9LAjhvyru1bBq5WnOs1d/Y9gEqeEBbV4Nl3qL5xfXZX2dZw4KHN4L eDww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700393316; x=1700998116; 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=Xm+UfIMEys6QjPYC9drBAt2mLOekLa2hZxGuk35Fqq/oaHPlmxVw+TltgdyV5YaPBv YoOq85TzTa/2Ld4kei5fR+qnr3M8fqGY9WdwGe5EV99f6by9hLYGATZCTiEutElf2iVc FIC291cX6XFAykk8gtI2DVj4cQBBP/ASSxcsd8OYkCiO4DMaBQqnsRgtmVMXU5ePY2UZ 5ZaZfafmVy2adpvKdMcQUaq1QJo5CTaChmFymtRE08ndFa9tHdPGQ/NoGfTbtN5bLjR9 8lGNDbGj2wRPiEPypCFBX1QQBiB1WFOijNyMlHJ3MdfRP2J0rO/aJ6ldLnVJ/lx7S1+w izOQ== X-Gm-Message-State: AOJu0YyyyZ6FXS9no9CQ7duYPCLDVN2/oHVwXMRnBkTbn8DAM09Ev8In QLwldXT/v9W+giOGWYLJBoQ= X-Received: by 2002:a17:906:74cb:b0:9fa:783b:c197 with SMTP id z11-20020a17090674cb00b009fa783bc197mr2843048ejl.13.1700393315790; Sun, 19 Nov 2023 03:28:35 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:28:35 -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 v3 07/20] drivers/gpu/drm: remove I2C_CLASS_DDC support Date: Sun, 19 Nov 2023 12:28:12 +0100 Message-ID: <20231119112826.5115-8-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=-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 agentk.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 (agentk.vger.email [0.0.0.0]); Sun, 19 Nov 2023 03:29:20 -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);