Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1590125rdb; Sun, 19 Nov 2023 02:16:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdk0eDD04x61rhBNz8DV1l3f5yt5vQhgDnVn+1C3BQXlXTkM5bIFu68Qly0wQCARoM+5Xv X-Received: by 2002:a05:6a00:6c94:b0:6be:2649:8c6b with SMTP id jc20-20020a056a006c9400b006be26498c6bmr3489990pfb.32.1700388999737; Sun, 19 Nov 2023 02:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700388999; cv=none; d=google.com; s=arc-20160816; b=m9nZmEA5zTe1056pvCfEdy1Pd8SqzUpl7k6Yj6uU9vi5GnIimkRZeO388SC4xjST9A 5CkJKNONAd5xKrDVxyandymZbhqWgz7wdObqM3lehD4fof82jhsVvFVFWJM9eWxYfwph +P9Vta5oHN+X4oZVQdXDXQhvsPzSHyf1Mt7xvDhr4eu5MjwHje2zNEutYTeLUQKVzcJO uOfOMNpHSVJEmMC/orh6ZydMZ3+LLW6lfHJWdom5jjOkfjQ5m4meX0hBQjEUL0dqZEzc uTOfz1Aq9syv0P8xrJ7HSyLnj0JGet1qP3iKZh8cZdl8CY4Fj/y47Skk8tWMnpzgGhmT 398w== 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=QM9HtLWF/spBFLdMKLgpW1o42x6yGAzSeO3AZQ/yYgsfnz1Fq4oKbtLEDRHMsRj/mf eYfBdff64C1qNDnMg5rKcXCwyuuXF0jJSZXN7CqtEZV/D53BGML/eKPOlxcjSVxintr/ 0zzLImtbiQaYPqry4g1XCa0jzmggDr0DXCa76tCsHte2RDRYW1ge/FUdghZgy0Wjvq8Q ebFCYva/oITb4FHxcnEENddHlGoKt8OC+PtS5LEC3QsyUhHRCryOE9Azn+ByqqsiR4jT Jjozh8EY81ZADGV7B3nzGc2ddUz/lwzer7rwTbUGBkwf5VRn0cVLusJt9Cf3h2UBVEaZ z7LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MDrSJaUq; 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 z12-20020aa7888c000000b006b9fd40d6cfsi6229231pfe.216.2023.11.19.02.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:16:39 -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=MDrSJaUq; 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 0722980944D7; Sun, 19 Nov 2023 02:15:55 -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 S230407AbjKSKPP (ORCPT + 99 others); Sun, 19 Nov 2023 05:15:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230436AbjKSKPA (ORCPT ); Sun, 19 Nov 2023 05:15:00 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FB65131; Sun, 19 Nov 2023 02:14:57 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9e623356e59so464997466b.0; Sun, 19 Nov 2023 02:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700388895; x=1700993695; 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=MDrSJaUqBHJfSqYEfCvfprPdo+1bWBS7CYU033N+T8Hu5ZFwF900yZKZlj5ZHCzQ6E EAH9PpzN2uvuDh3yUAzs6LUvS7XLOSJ6O6lQYIpIPVyzYrixevuLCB2OkZrYW8ZDL0/H h8jGA9Bb4KVptmb8WheFJ1JPG7wpvNOHXNZwojqyS26d8YAQH24n9WB8cEtc2gLBajwD iLBPcJQQYYELHyZmqZCAISM6bGfTyG6aUjJETiEJrRQs2d+eFz2dA4FJveQXjaUADYj0 hQiTBdrMqlAse5Gk39YCRZVVzuRD/MCKPLFiwh+akbJc5KixlvuDtS0cYykTkcB6iDYN SESw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700388895; x=1700993695; 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=TjKYalED+zyPhFqAYHfksv1nYtFZaFibYbPUfPrdL5w+Wt3SOuSkuYK25gREfspQvg S13Pc/VYruurVsjUuS0CsWPVfkB16fzpSNrENRwgjdWJvdurcKChzabKmguUe9AtqcKz v7LxC/x3JmgFY25TqThA+vf1vMQlA2P5PI6PXZWjwuEgMyo/pkfS7K6XfaHetOQ7qp86 1vFEXUe5mmyDPRd8fIt81AmTQCB58xtH8kpsIWCBw1Rzdn1xKtgvglBedEwnI16sDMpa 02A5xe/Ic0Ejq50ftFMk+bRPksNxray7tUA79JNcc9X+bXYR9VO4lonQLVOeB6X28q69 ujXQ== X-Gm-Message-State: AOJu0YxxTGPTeT7fMaRru+LMzsJTAkVbH5s2ZmKTGtEdPyaMQaX91fqb 7bDSo1vDLcbGEQauhNn298s= X-Received: by 2002:a17:906:10d2:b0:9fd:f325:1317 with SMTP id v18-20020a17090610d200b009fdf3251317mr304396ejv.24.1700388895427; Sun, 19 Nov 2023 02:14:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:14:55 -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 11:14:32 +0100 Message-ID: <20231119101445.4737-8-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:55 -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);