Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1590114rdb; Sun, 19 Nov 2023 02:16:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDHEIn/5CiSqzAAhdtjwzxt3gcytjrkSofl4fRTbZ1LEkGD/v11PcfPO5AwdrdvwJ0v3AT X-Received: by 2002:a05:6a20:dda8:b0:187:96e0:33c with SMTP id kw40-20020a056a20dda800b0018796e0033cmr2259918pzb.45.1700388998149; Sun, 19 Nov 2023 02:16:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700388998; cv=none; d=google.com; s=arc-20160816; b=JvAMQ7tAQa3tIJeta1Z4kc4fFY4G0sZcBjeJsLTLIdf132LvVi6dz4xZSwGIwr3J86 ZKyEm84Ypm2cKO1+OiUl22pTyPWgs8DiMMxgArA4qMCaRv2+yceg0/ePC9jQXlejEjuM 5+8WJbn8C6W/zV87fOQJE21BnqcS0YNLLlbj/36TD2RxLbVOskZCbf2NaHLevsIhrMlf GDKHGBpAfOouxMSOcHZf/24f/KlFVyihSR1zMBioy/VJlY1WIz+mFY4RaHV4c53mdulO WEVeKhjeIuUWBK8Gq+Fu6coMHBeiqjLjH/GT1nXvIdqaRxOxiSwVQ7FzUx+MqJWV+rzb 4x5w== 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=cyZ/cbQESDC/MGT/kN0ThvfGObcymEWZy6uoIIRVQcA=; fh=j+vOThBk33BHxoCn4rnl90afT2XoUPHzTL6f/c31we0=; b=wfOXbII12y8kjMU6wcsdum5wWbfLetLcb+u6ZDpvWW2MSG0oPyUkex4OZY8OmMpIlL DDVQiNpLfu8jmRpZppaLdQZKG8efX9WZDvZQJz9UO0SoH06afmFijAYsiV+VrN6oX4wq a/BSRew3+lJdnqqdCQPOESpRWdFI7o5R4L4lIEhbOJyhfgFnRaOXoGCgDfIyYk4kFc7V CeQe7V/B7bKZ42EHAx+NMoEShLhxNaSKNm3iwkjxsAXBKuiLFh7yrIu//DPG1twZPMhw cc4SYF69DUHCHPV9d0OecM7PSy7r8py9mBQ3fmleVSKxKIVgdy82u2e79KXv4Smc5BEC 1E/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pdlil84z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k5-20020a170902c40500b001cad3a744aesi5510544plk.153.2023.11.19.02.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:16:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pdlil84z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 7C005807E522; Sun, 19 Nov 2023 02:15:29 -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 S230439AbjKSKPC (ORCPT + 99 others); Sun, 19 Nov 2023 05:15:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbjKSKO5 (ORCPT ); Sun, 19 Nov 2023 05:14:57 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F20A612D; Sun, 19 Nov 2023 02:14:53 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9dbb3e0ff65so462036766b.1; Sun, 19 Nov 2023 02:14:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700388892; x=1700993692; 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=cyZ/cbQESDC/MGT/kN0ThvfGObcymEWZy6uoIIRVQcA=; b=Pdlil84zVU482CytKiGGUXTOIyoDq3flsjACHoSSZ86Cbuo810xxRsS4A6KYWTyVXM kAcAgD9GnCR7idDOynlGBf5k59jAsnERtlxJK/ofVN2ToAa5yDdOmVKB9CCbl76cLQn6 B8Yw1Ze0dYewAFGjNMawLQZWJpiDCiH09Kyvwjk3jCJD3+s6jvKXIUtNmppO/plwbcHD lqjtrk4kXc6rB9z+InKK1PMRGw+cNFp0TKKax0MxATNgMuRHg81sKH/yl4EJBbrwjZHa UI2VBZ5De1ncgCcZntr15JHpw4hrr0mVgk37Y7EeWcDJmt915Auz7Yn9nOIxF7VVFGka h9ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700388892; x=1700993692; 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=cyZ/cbQESDC/MGT/kN0ThvfGObcymEWZy6uoIIRVQcA=; b=FnmJOm/WYAJBshfc9wz0a0h78+tVCGl/f4fVYZlL47g13FczP2zP/cEhbhvZRKjIMB b7kbj3nQvVB5khhaPlOFNaJwqAkvvcNoGk1z0Bkxi3HM8MoUWQpPePYK0L9HuwKLrsA7 SMNX/Wk8gPD0th0TXyaUSDfOe+qecDANhnO3Q1t91y8SfEfh3eWq4VoIUK6RZEORrPHC UMzb+Qa6vL108igvlhamMb+GYgz25/CQGsuScECuwYDF4T7aeOl3AhEtiYuBVsS8maQh onZxwz9SomiQ1STDOyYkrRJWJhkNmc7IJzr435HlDa0lpX4m0fFN+3WQpHDGo87Fk4jc 6rrw== X-Gm-Message-State: AOJu0YyQcIf0lpmTClbjjchh6HGu2rlx8cHbXngImx75N0GPcMt6XSCr fXywHgHSI1VZ3p15ual5HOE= X-Received: by 2002:a17:907:c018:b0:9bd:bbc1:1c5f with SMTP id ss24-20020a170907c01800b009bdbbc11c5fmr3589189ejc.35.1700388892263; Sun, 19 Nov 2023 02:14:52 -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.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:14:51 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Harry Wentland Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Leo Li , Rodrigo Siqueira , Alex Deucher , =?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 03/20] drm/amd/display: remove I2C_CLASS_DDC support Date: Sun, 19 Nov 2023 11:14:28 +0100 Message-ID: <20231119101445.4737-4-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 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 02:15: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: Harry Wentland Acked-by: Alex Deucher Signed-off-by: Heiner Kallweit --- v2: - adjust tag in commit subject --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 6f99f6754..ae1edc6ab 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -7529,7 +7529,6 @@ create_i2c(struct ddc_service *ddc_service, if (!i2c) return NULL; i2c->base.owner = THIS_MODULE; - i2c->base.class = I2C_CLASS_DDC; i2c->base.dev.parent = &adev->pdev->dev; i2c->base.algo = &amdgpu_dm_i2c_algo; snprintf(i2c->base.name, sizeof(i2c->base.name), "AMDGPU DM i2c hw bus %d", link_index);