From patchwork Mon Nov 13 11:23:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13453856 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53D29C04E83 for ; Mon, 13 Nov 2023 11:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CEWXc8R8QiN0GVn+10XiUVoP78gV0ANPGo8slRYIyEQ=; b=NDpHFpy0Cwhm+J BT7120rBGpU0+rqFBzpnDRJhYClY3WvU2QVGkRupxfzJ9Sd9ihaaqdnpW/rLB5ymyI6VQZLqkE5of 1JWm1sfoVVIAkquW3nVH9oABJdNTXky2ifudXqTXcXUo+xTcaBhilf3bcYwYVwW3twTU/lp0PFZSm Bm9qZEuxAPJ6CNVavuIYL/N0qIZL1j0bJ4mpxrhxNmxbRo+b2R2FEjEgdx0hVidAyAKsG9G+7lS7u mQ2ITIRwMCCivZuwDcI7NJWUXAVg6OPwrRG5vsopIyBFgxfwSijzYnaJaNYqYjYcz0tUfKWvwOF36 F5Z7JBx+ItOYedmF8fsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2V34-00DisL-1j; Mon, 13 Nov 2023 11:24:10 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2V2z-00Diq3-08; Mon, 13 Nov 2023 11:24:06 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50a71aac023so3818806e87.3; Mon, 13 Nov 2023 03:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699874641; x=1700479441; darn=lists.infradead.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=Opo2n1kgRGyqTe3TRkg8x+CZ1bdNAAuwb0HOdaOfFW0=; b=gLgh+paN2i2avjiQJ2Lq5qUa1zNQH1F98Ys3i+hkr5C8838/6rNj16reAWOnYz8sjR r/Vx27uL0VGs2haktLeMEUvKSdhYbyGgaoj7P/MH6QQ13NR6qwRj1xXdKEyYFU9Gk3+5 3xSYnmBMQaplJuNtd+DL/VRhVOTu1eafVhwjsTevpMDMh1gvjxgUQ1yTQkAOK7p3UZ6p Ar4tlEP8568IDDLCVc8hk47CXnp8Kb9+1pwNyHMlRPtSvV8tAKqyBWmWv2X2Zo5EzMok EHz84NnH/UPjx6YXAy2dNwLWrhL8Pw2m4xGYvC1HWWBTq7IS56FbPCUWr2sSNJP1Ukyd wScA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699874641; x=1700479441; 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=Opo2n1kgRGyqTe3TRkg8x+CZ1bdNAAuwb0HOdaOfFW0=; b=KIr+5iqux8qAdxO/3h+8WPFQRVdUTDoE7u2mB67xCTmruGuiaV5DHGGCS8FNj2rTsA gTN/gfjimw9TlNxzM99/g/Xzqucqsoh+RnYdKUP5AlhgTNv+Yq3YcP4aj7JvovQsAqvp CzkqG1NYGhF9ShjUz69A/HXRlQkf88VJeYt6eT9K/qBKR7fSoqEUpy2If0yCVI3emMN6 b+NUgXXwzg/+cn5z/LW7MswyLcIkkSEiwjSB0FD8yYrfY1A5qaorQOru5PaJ6zEFthSy 1fXnBjxCvW/dFjGFXxp9vGZ53S1JRKZgKc7TUFU3gG+Nai5/tKpugcPNmvaxDtecCfBc tbcQ== X-Gm-Message-State: AOJu0YwHF00W1R/8NycSRCm/qWbBbJNQZ9s1lZOumwtcdByuvjn2dpCS HK8AnZ0y1AAwWmd/bvZmUaE= X-Google-Smtp-Source: AGHT+IEC4bNxMxVLe61hoEBoRm/P4z68EeACSaOaY2P2h8vmjgRJS7MeWj+M0EXY9PL6tHaJ0DbGAg== X-Received: by 2002:a05:6512:3e0f:b0:507:9628:afb with SMTP id i15-20020a0565123e0f00b0050796280afbmr5515817lfv.68.1699874641249; Mon, 13 Nov 2023 03:24:01 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-6e16-fe00-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:6e16:fe00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id l19-20020a05600c4f1300b0040772138bb7sm13565787wmq.2.2023.11.13.03.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 03:24:00 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Sandy Huang Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , =?utf-8?q?Heiko_St=C3=BCbner?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/20] drivers/gpu/drm/rockchip: remove I2C_CLASS_DDC support Date: Mon, 13 Nov 2023 12:23:25 +0100 Message-ID: <20231113112344.719-2-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231113112344.719-1-hkallweit1@gmail.com> References: <20231113112344.719-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231113_032405_080439_682287BF X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Signed-off-by: Heiner Kallweit Acked-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/inno_hdmi.c | 1 - drivers/gpu/drm/rockchip/rk3066_hdmi.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 6e5b922a1..a7739b27c 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -793,7 +793,6 @@ static struct i2c_adapter *inno_hdmi_i2c_adapter(struct inno_hdmi *hdmi) init_completion(&i2c->cmp); adap = &i2c->adap; - adap->class = I2C_CLASS_DDC; adap->owner = THIS_MODULE; adap->dev.parent = hdmi->dev; adap->dev.of_node = hdmi->dev->of_node; diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_hdmi.c index fa6e592e0..7a3f71aa2 100644 --- a/drivers/gpu/drm/rockchip/rk3066_hdmi.c +++ b/drivers/gpu/drm/rockchip/rk3066_hdmi.c @@ -725,7 +725,6 @@ static struct i2c_adapter *rk3066_hdmi_i2c_adapter(struct rk3066_hdmi *hdmi) init_completion(&i2c->cmpltn); adap = &i2c->adap; - adap->class = I2C_CLASS_DDC; adap->owner = THIS_MODULE; adap->dev.parent = hdmi->dev; adap->dev.of_node = hdmi->dev->of_node; From patchwork Mon Nov 13 11:23:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13453858 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 772AEC4167D for ; Mon, 13 Nov 2023 11:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aPN1CAErf8WPqQERja9T3++JEvLamQq39pifTdWQSAs=; b=4u9+ZUCLGwMiZ+ A+ta1kXsDAAexspGgB4pVFjYgPr2F1uZIEoHYByDldtcJLQeKCfJ59rRxic3NwvtN0FiX/239utBD TQJnmMuaJi5AnG3TGlBOQnspwAgl8Pyd9q9ccQfoOPahU2isu6Dlrm2dHZqsFD0XAMCGBH7UcHCvh Ndv/DMCfhU37FvPTdFZ6F09Tg0sOnzefWtKaP5mbf3owlPtiXu4fxMXmVC4oMSzRV3bMr/rhZO2L2 tJkKF6wMHO1mwl+0gG/oWV5FpjrRWnpeLfKSunPm0Pw9P6nnZ21KhoGGkImmBwpxofZXKrVXF7Le9 tFmilse8rDLtLaHy1ZZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2V35-00Dita-1t; Mon, 13 Nov 2023 11:24:11 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2V31-00Diqd-2b for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2023 11:24:09 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c54c8934abso58711331fa.0 for ; Mon, 13 Nov 2023 03:24:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699874645; x=1700479445; darn=lists.infradead.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=2A7KgJeMP1lI74vlMRztf0ZeAIQKlR0j/L1YwdkkguA=; b=cVAyCeSD7qHq5r/p2qq74VGb05Q2o389X8FpIkvHBL6KFLTY4pNvnI0lHwzJESdDLB nmrFjhfu86V0x7q+npFQiH8TrJeVwZ+WC5+GLIlXa5DUeJuTN9CQb52KSDXVBqqLgtQP apYRHs6AH0mjNa0M/hLOOVLJ3cDDL8jfKuN3PRczYRHAJ/xIwc5WJXwRLROL32uFORO8 CU3Hz3PxW6cII0cpoaWnsxPzlEQ8gUEX0ChRfEihGDpjK91u7KQYclnnkGPM7EnNROkf d0bKPCIGSGR0qrfY6M/BpaPOm6Xc2dbFpT/6dcLNv2r3K8zoUVUH3n4Pke2qwD68rOFx L2bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699874645; x=1700479445; 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=2A7KgJeMP1lI74vlMRztf0ZeAIQKlR0j/L1YwdkkguA=; b=iNMfA8hqSFSNOKUAogbLkm5tEOAxDozZLWw6oH2DHpfK5BgRev0byAZmVw4q680G7I yBJ/SXcYyM1ydigGNvlYOKaQhbmLwOEorhz2XMMrUvhyvdzp8PnSGGiwpL17xD/gDfA5 g0V+ItEAqqqTYXzH9hrHppHIWKFmLIlKGB60aI5cJNnyj4QpGaBKFmLGJSokCJcWcyPY oKzbWGqp56TTPYxm8VNSWXAJzz0Tmq/5cTW+AiQ5/BE3MhAtlV5QBjuNbonRzO3fSAw4 RhvUPTDTLLWup6AiQng/+qe/5Pzzrb6h/U4N33P0VVmFx+zBWOBQakTZwRpiV9OutViB ET5w== X-Gm-Message-State: AOJu0YzchKXNEEMeuolOXR9FwUYjRyY2mNXjwqpfnK4plug2o8aJhuXw 8R7B5TizceFuBppMXHRb3+4= X-Google-Smtp-Source: AGHT+IE/vWt8sIluAJGbzp4DA3YgSD9QnVjHE9gZQVa6sNYXW8a/yNVaWFtAUhPLeeYxcoE+kXqeow== X-Received: by 2002:a2e:8954:0:b0:2c7:7b65:60b5 with SMTP id b20-20020a2e8954000000b002c77b6560b5mr5041996ljk.30.1699874644560; Mon, 13 Nov 2023 03:24:04 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-6e16-fe00-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:6e16:fe00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id l19-20020a05600c4f1300b0040772138bb7sm13565787wmq.2.2023.11.13.03.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 03:24:04 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Maxime Ripard Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Chen-Yu Tsai , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jernej Skrabec , Samuel Holland , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 04/20] drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c: remove I2C_CLASS_DDC support Date: Mon, 13 Nov 2023 12:23:28 +0100 Message-ID: <20231113112344.719-5-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231113112344.719-1-hkallweit1@gmail.com> References: <20231113112344.719-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231113_032407_848489_2300CB98 X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Signed-off-by: Heiner Kallweit --- drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c index d1a65a921..f5f62eb0e 100644 --- a/drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c +++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c @@ -302,7 +302,6 @@ int sun4i_hdmi_i2c_create(struct device *dev, struct sun4i_hdmi *hdmi) return -ENOMEM; adap->owner = THIS_MODULE; - adap->class = I2C_CLASS_DDC; adap->algo = &sun4i_hdmi_i2c_algorithm; strscpy(adap->name, "sun4i_hdmi_i2c adapter", sizeof(adap->name)); i2c_set_adapdata(adap, hdmi); From patchwork Mon Nov 13 11:23:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13453859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9269BC05021 for ; Mon, 13 Nov 2023 11:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lmgBbbbYbWOA3kDrPOLGOQ7ZnVJBjMR1A52XGtMsWc0=; b=FO4TPa2ePGu7Dj WSNLZcxyEguvVfQGdyxl6naQRUGCF2zM8aKFUol6fy81NYi8V0an1jZfF0fO9EoBVab76AJO0Ws9/ kfE3cec0kmTVVWh77wsB9AzFZB+mDmhlt0/0VBqZ4Kgc4vy6QHGcttZ3TvehcvI0kYtE9xkwh9glS 36z2tLI4w3RDVXG+XyX9RatPSz6t0GjI1rWFcbtsRMPrRP9nmjJNQVHa9u0RwoyLyo2ZXtDu7d0wU qOckD1rWpwl3D7vA78uB8pXvIN8NFpvG11OZKavjjxiJx0Hzpshx9qdDmVZVXI9vD/f8f+G+IUFvI isnItFyrzGTBQbArCO6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2V3A-00Diwc-18; Mon, 13 Nov 2023 11:24:16 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2V37-00DisN-0N for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2023 11:24:14 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4083f61322fso33327955e9.1 for ; Mon, 13 Nov 2023 03:24:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699874650; x=1700479450; darn=lists.infradead.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=lj6lXffwhPaiA+tttg2gWfCsavHU7fIAFEm3bWLvYqY=; b=mOBZqPU1ykVSJV2s7ty5QfT8IjgVFIUuxf5DlwYGcmYizIWR1ojr6rvV5eWn+mNe+t nhC/Fg//3IiFb/i9thdnj8/yl8UIwfwQgP8IIavZLDkAZ7yr13OFw5EP4SMYhLz2I2ts Tp4OhbMxED2k8BUez86SiS550hNOKomhWILwqgeXgvf9Sj41a6bBORcSfKCuT9qJQwCQ CsWhr9oHP9Babx4vVBJuOSRn0/CaQlza61dCKoeV0olDISFrfevU2GHK5b/gRkNqjDN9 neqRPX/HsO7NskR2CleCCKPwfLY5pj11Y3iDPNnsnko9jV8vE0zp8YK7DYMgRAEFjFXO 9/iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699874650; x=1700479450; 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=lj6lXffwhPaiA+tttg2gWfCsavHU7fIAFEm3bWLvYqY=; b=KE1f9HRt7rSWe/syYkLJ3g28RB2CHHjidufpQ5NtjKZAfislxbdKu7fthryjGZ8Hkp qBMTBZv7iOgzwO9xgCqf24GLkUYuZul+vZRvb9n/WOjNnFZlaHLpAvCt9pThgXrC16qd fjsAht0ymp32oqeB9YRo+sZBEEUxZdRzjBQfeVr/0bqIk0/9GwrmqVGXaj/NmmHsAyTA uwlCP9+/Rer5CuwMxQwi2p0ylBchEWM/o8rxPfYPEimCtty0kQyCySPHQDzBtigoe/gv kvwq5M7yPYJk6LAgKzZiqKt5qvJvzOhBOcv4KZ6FhFwI5lmdiU0uvHG6XQ3o7gGk4hHk USWQ== X-Gm-Message-State: AOJu0YzGIjTwVbDFf9vxJnb3O7dMh5U/HS37V3vftrZv5CrZexMe/czY nvuGMBVd9UskUVDpmKk1jwGSVwUO/3Q= X-Google-Smtp-Source: AGHT+IFLTl+fAOmA9wfAnqq5QL35Y8l0EQWxEuKGeK/UmNhJYPQBWfJpPA26uHWh9GGQv+cTL2zTow== X-Received: by 2002:a05:600c:348f:b0:406:411f:742e with SMTP id a15-20020a05600c348f00b00406411f742emr5433441wmq.34.1699874649928; Mon, 13 Nov 2023 03:24:09 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-6e16-fe00-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:6e16:fe00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id l19-20020a05600c4f1300b0040772138bb7sm13565787wmq.2.2023.11.13.03.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 03:24:09 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Russell King Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Helge Deller , linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/20] drivers/video/fbdev/cyber2000fb.c: remove I2C_CLASS_DDC support Date: Mon, 13 Nov 2023 12:23:34 +0100 Message-ID: <20231113112344.719-11-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231113112344.719-1-hkallweit1@gmail.com> References: <20231113112344.719-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231113_032413_154158_092D7FC1 X-CRM114-Status: GOOD ( 13.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Signed-off-by: Heiner Kallweit --- drivers/video/fbdev/cyber2000fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/cyber2000fb.c b/drivers/video/fbdev/cyber2000fb.c index 52105dc1a..79775deda 100644 --- a/drivers/video/fbdev/cyber2000fb.c +++ b/drivers/video/fbdev/cyber2000fb.c @@ -1234,7 +1234,6 @@ static int cyber2000fb_setup_ddc_bus(struct cfb_info *cfb) strscpy(cfb->ddc_adapter.name, cfb->fb.fix.id, sizeof(cfb->ddc_adapter.name)); cfb->ddc_adapter.owner = THIS_MODULE; - cfb->ddc_adapter.class = I2C_CLASS_DDC; cfb->ddc_adapter.algo_data = &cfb->ddc_algo; cfb->ddc_adapter.dev.parent = cfb->fb.device; cfb->ddc_algo.setsda = cyber2000fb_ddc_setsda; From patchwork Mon Nov 13 11:23:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13453860 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A003C4332F for ; Mon, 13 Nov 2023 11:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7iY/T2Wz4bxyMSsYyPcU1f1rV9rVBKXkefKSq5OjNI8=; b=mrXVBp80ZcLAkI vxyt99XiS59mwsxhbEgoa9nivykEAzjE1ZSRCuzrN78gc551ldKmspkJuZRK0wNxVhfBIEvPScUTI EVmpbs+KUuTfmpqwsNSZ4us9BDf/EhAKpvgaUmhX6p33xJm/RL7Gq3i454+koOm+5vpPevSIMGV9I Mq7k9RtizRZKYrLXE5bHzrkbSeh9lXa/AwEbQSzrDDcwEvpjYW3g4mxETsBWGZ11OhXzlt/dD+yOf CqBQpQOMzRnm86BSqrqpLeXa01ETWafJjL74P5oY4aQ9BXil3+e4GLLrmhvGJ57JNivwjuWbyXdaS ELpbSXFeLBzO1rAcuohA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2V3E-00DizO-01; Mon, 13 Nov 2023 11:24:20 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2V38-00DiuL-2N; Mon, 13 Nov 2023 11:24:15 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4083cd3917eso35021265e9.3; Mon, 13 Nov 2023 03:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699874652; x=1700479452; darn=lists.infradead.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=ihe5CWoYwzVYQa0PIBn4FXCZubjqfqZzL14QGGmAy2E=; b=XSp3Wq95qHSPVrEEuXP3vWilJO/przl/TwJ2WAWbvQYWYn37OCflibRa7RvDQL92jP JAe6NitEPU5tJLQ/WTCwFlkw8jsBzueD40e7TYTzJwcXbAlHOK6f5J8m9ykx89R1RRN6 GVfkKeqS9PXd8oXj+4oBn+IKrXElXgnGUR5YwMweVj5QDywLZ51+L/wfI1NHeYdUSd+J 0AyjjBOu1pGudZClUlihBk5YSYdG80gRj5T9D7BxQ/NeuvvtzYsTkhOON4YzbfNrxcX9 5wyISi149gZvUlsU+DZFP/427n4qkk5hX6ax0I+NVLj/IkmP54n7YCeTR99ch6geq+ZQ /VgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699874652; x=1700479452; 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=ihe5CWoYwzVYQa0PIBn4FXCZubjqfqZzL14QGGmAy2E=; b=CkogFnpZAdqsTQmYgi9Csnt0e1ibF4aaBL8bPFzOYQst03xarFL9VmykpKExlDYuC6 ugg13gPfry2NbXaOhoGP7AL8GAZnauJAWdtf3kCj+AsxydA6GgpDv5yukBWKjAwDK8cf DT7Y6ihUPSPtuDbuPj6qu9IOct5gmuq339ksfphaL+ZzR/QsnvYhqrCwDswmRyRxJ5nP F55NRD06WhkmEW4Ts5AXitxzAIdc+GTbGjpZDRX7/TYhedCC3vXnrPWrynt5fGT72/xU bLHcBmdIY0I7iEmKiD/FINXt2T0ITJr4gQSrq4MgFQk4ybN14W7D5PyC1ddxuNO+EEzE FVzg== X-Gm-Message-State: AOJu0YwtbUiMS/aGGOm1K2xWO3T3l5DphI9DJiDIVwXI/QDr2kDFhd9e L3BmlNT3sXe10NIUCppno+w= X-Google-Smtp-Source: AGHT+IEb96vRjjDVhf2WWvt4ATSMI0ZIHMZT2M821fnApL0F6zP0tqP/mZlSqQGsQCCeZ+/3gKjOXw== X-Received: by 2002:a05:600c:4f09:b0:405:336b:8307 with SMTP id l9-20020a05600c4f0900b00405336b8307mr5644653wmq.7.1699874651755; Mon, 13 Nov 2023 03:24:11 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-6e16-fe00-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:6e16:fe00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id l19-20020a05600c4f1300b0040772138bb7sm13565787wmq.2.2023.11.13.03.24.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 03:24:11 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Chun-Kuang Hu Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , AngeloGioacchino Del Regno , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 12/20] drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c: remove I2C_CLASS_DDC support Date: Mon, 13 Nov 2023 12:23:36 +0100 Message-ID: <20231113112344.719-13-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231113112344.719-1-hkallweit1@gmail.com> References: <20231113112344.719-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231113_032414_775182_A6E5B0A9 X-CRM114-Status: GOOD ( 13.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Signed-off-by: Heiner Kallweit --- drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c b/drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c index d675c954b..54e46e440 100644 --- a/drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c +++ b/drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c @@ -297,7 +297,6 @@ static int mtk_hdmi_ddc_probe(struct platform_device *pdev) strscpy(ddc->adap.name, "mediatek-hdmi-ddc", sizeof(ddc->adap.name)); ddc->adap.owner = THIS_MODULE; - ddc->adap.class = I2C_CLASS_DDC; ddc->adap.algo = &mtk_hdmi_ddc_algorithm; ddc->adap.retries = 3; ddc->adap.dev.of_node = dev->of_node;