From patchwork Thu Nov 23 09:40:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13466018 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 1E7DFC636CB for ; Thu, 23 Nov 2023 09:41:18 +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=BCSURXbSQggoQPxhFimI14+6PoQq4HJThLNSJwCG1pg=; b=ct/Y9BjBzZ/Yqo mPRPCyjnMjMw3sP3Kke1jRpt8YNfL/qBFbcanhJH6DzxSGYQ6L0uRYz9X2//Kb7DwmhzD1o4QgqOQ j8kFXheHs0NYbs+OwPf9WOvhZwQD7BnS114M/ks5tLK2yTnOjirGuxfVLnPh/b2FOwDNloH1W1XK2 iYDUyg+ZePP/DDXz1c0KMvYWd0OOmElXpmF039hYlbCAaw70CQofpaMyhhPAkZhz2obE1tibSoUoX mpk7W2lY2PwQBjqsj7Iv5l/i/Y3l/Bu5cTrcQJyDAF2AAHET5r27MTn7EfL+sIIYkBhXHP28Yfb1j LjTl6nGRb8urmbonI0EA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r66CZ-004HUF-0W; Thu, 23 Nov 2023 09:40:51 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r66CW-004HSE-0k; Thu, 23 Nov 2023 09:40:49 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-54a95657df3so1021686a12.0; Thu, 23 Nov 2023 01:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700732446; x=1701337246; 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=Wi4R483zknpMUwj3cvaLHx1vmpa1j9N3buw1XNODPJU=; b=Ogy91t7UoGYMuJrgvtCIcVdaIKGzRHClogZPFujWmC1eJajtwC12TS54IIj//B0JVY uH47fbqw9pnueZh/HgQq0SAcZ6lmHR4dljv0+jd7vUsv/FlCr0/GZ4oVpYWVuavy2R9y Sz80nt8cvG9Lrgx9dL4f0DMEZ1GcFhbGs8TvkP6oAo1rNezOtZsZHKdrPo5dwslZOM/d jk0hiBmX29lulyc+9gbd6Ms2hJeMdyuuxza+1GiRp13QJk59sLdySjkohBMSN47FDnsK smypFJ/n6GF+frtk1b3bsZZuNvla0rynoB4XO3ql7cU3RtFkS5KaeGHPtZjEJp77Gbaq 4MPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700732446; x=1701337246; 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=Wi4R483zknpMUwj3cvaLHx1vmpa1j9N3buw1XNODPJU=; b=Z91xYWXvo16kpHAcrh6V4wxfVQkaFDbd/a0tE1Bf+qH6jlBMrfXdyi8iw+jocoJkl/ F59tfpu64MYlff7mii6/Tvs3CDD15t2iD7YXAstkkFnzhbRM+r8HakcYStw+dsCjTCex SgymE1BathUZPydBvSV/igE2xudr4NiDKcofMfXm/FBMSwT5KJy2pwGKkfgJgZWLbcYZ 5ivApRdHTEPADu3zt/EihJzhFki7BH61S6+lIvuvUxu5NFRYRkLq8IrLI2aXUTGyKsTe JgV00S2MDr6P97+85VTi7mop1tKvcHVYzcuVI1EQHP6Bd6jIfhb9vxXeomXOxeY9Bbvt xRrg== X-Gm-Message-State: AOJu0Yw4Yh5NKDN0CKOykWxJ0Z/0W0tuyEL8HZpS0cg/B0W5MzrEEVF6 aDgvn17MEnQJa8loAShcq/k= X-Google-Smtp-Source: AGHT+IEtwKDYnzg1xKgfKy0ud4LFwlV0rfc9uAkIx75F9WsQAVnCrYCvhXmBXTNqAzq4Kf4OfYEh4Q== X-Received: by 2002:a17:906:7c57:b0:9fc:9b28:7ffc with SMTP id g23-20020a1709067c5700b009fc9b287ffcmr3285748ejp.17.1700732445589; Thu, 23 Nov 2023 01:40:45 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-c0f2-3200-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:c0f2:3200:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id s9-20020a1709066c8900b009e5ce1acb01sm546199ejr.103.2023.11.23.01.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:40:45 -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 v5 01/20] drivers/gpu/drm/rockchip: remove I2C_CLASS_DDC support Date: Thu, 23 Nov 2023 10:40:21 +0100 Message-ID: <20231123094040.592-2-hkallweit1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231123094040.592-1-hkallweit1@gmail.com> References: <20231123094040.592-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231123_014048_267618_62F5CBE4 X-CRM114-Status: GOOD ( 12.42 ) 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. Acked-by: Heiko Stuebner Acked-by: Thomas Zimmermann Signed-off-by: Heiner Kallweit --- 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 Thu Nov 23 09:40:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13466019 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 ECDE6C5AD4C for ; Thu, 23 Nov 2023 09:41:29 +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=FxhPqeVrBCLj1lMAWCsej9K0BAln9qHd2cNYIpiRIZs=; b=cnOywCnm3NPHPa A9QEK55Iaa2ZTLWZrBbeL/Ou8lneWFJhJ0OAdTZRuMGaY7vyEWJcNGql/Kh+4AD2KseUlRniG0zX4 VNkQVlJCcz5VMzralnukA8lkHpf2n6EK78zSYjsDEAhRto5hnzrr47MtU616njEliyKE9zd2yupBw DIBlNpXW4vCqXaSTKG16TDin0SMBRcNWc8NiU65KWsIPDREO7xXldBTLDzp7XmKXYhjxLzltYBU9X 2FgGHJKVQddwDExqNz0zNAO+nB8LOXwmgKYn93A/wiS3W6isRaxAcwaeqj963YbqZZ79BI0v++h4l D0nnEupayitSaMFHxkcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r66Cl-004Haf-1g; Thu, 23 Nov 2023 09:41:03 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r66CY-004HT3-2d for linux-arm-kernel@lists.infradead.org; Thu, 23 Nov 2023 09:40:52 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-54a94e68fb1so1759572a12.0 for ; Thu, 23 Nov 2023 01:40:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700732448; x=1701337248; 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=SLxIO8jymMsGgax9WMIUOf53Q8UCr/7PCCK8+C8vDXQ=; b=dNl8T4ZrnmCBh0z9yOu0NWDyah2yrqsMVep9YCKIaACZ2CX8LTTFRNt9tyCBRdDMdr r2Rg7VNlFQFmtf8Ps1mGOQtdUdqrAwKQThiyWcqwM6baxaRcSXyjB6M1wvnS+5MTW0Rt CRwZxL9jtgFMu8OjdVK4c6nLqKyoK8xJd4ft9xzrqjQTR1nmTBGlryfvfwfku5HspYcN +FZPwEjI7+lR08my3fry9rZ3xeByrimKz+C4jWxfsEyLNaDnnwO1YPRcr+xMAA1bObZS nHv5iLoFaqdD7bjaI3Wz3uEBTadOTHseAmSiKRlxtWecXIBXwhM/fNN+AxsPoIbmSy+8 6pyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700732448; x=1701337248; 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=SLxIO8jymMsGgax9WMIUOf53Q8UCr/7PCCK8+C8vDXQ=; b=Vui3uIpuYYm9AY6BCjmocgExSnxzDg+e1UMKD1Vb16pVaC1GQv24v+9uh0KgMRhP3J 5eBuzmqbxOd45GZriW/UL/nba1ZxSSb6lJinYipRt+12DgCnxGwCm5m5u9PcrNVdnZK9 2rVpuBb23UmUmgfRahBvZ2j+bpUr7OdW46DU+nI7YL6Fe/4G9JIxI2PPfo5i2sJEypxN MLUDdd0GiLXnXHXk6FwRnV9ZamvT8zGnXALGYocfJmPG1o/b/7EB5dHBnTG4F8i3nQAN caHhFSSkKCguj6lANkHCqcJRdSUcMMKDCWT9NdRP5hiuc+EwlKC3bBjjwZ+DnfaN1VLD 68lw== X-Gm-Message-State: AOJu0YzbU2rwCwu7veOTLMlUJp1XTBD/IpltC7UyugW6KEVzM4A/LLVN VZcJDTH9/G73U7Y/q941RHA= X-Google-Smtp-Source: AGHT+IHAAgtMNPgGG8plHKbnTsqENUj/FChwDuBx+Jt1UJ0zF6uKp2U1sG6bXy9dBnLTJPdZkoeP/A== X-Received: by 2002:a17:906:78c:b0:a04:e1e7:d14c with SMTP id l12-20020a170906078c00b00a04e1e7d14cmr1773863ejc.32.1700732448312; Thu, 23 Nov 2023 01:40:48 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-c0f2-3200-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:c0f2:3200:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id s9-20020a1709066c8900b009e5ce1acb01sm546199ejr.103.2023.11.23.01.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:40:47 -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 v5 04/20] drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c: remove I2C_CLASS_DDC support Date: Thu, 23 Nov 2023 10:40:24 +0100 Message-ID: <20231123094040.592-5-hkallweit1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231123094040.592-1-hkallweit1@gmail.com> References: <20231123094040.592-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231123_014050_872303_6E734304 X-CRM114-Status: GOOD ( 13.09 ) 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. Acked-by: Jernej Skrabec Acked-by: Thomas Zimmermann 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 Thu Nov 23 09:40:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13466020 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 42EB7C636CB for ; Thu, 23 Nov 2023 09:41:30 +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=6RLi2hDmeZQVYiHuHPuoBM6eSIVprHi9XmnIKrdWzMk=; b=gqnUY2WVHzHzgQ 8ylZwC6DhntoxiYMPTy4R80Mbh9YDsINJAtHHyIUU/V3qAsMdyx47BdC/Mnqe7Ny+9wwmeJIl2rJ+ 3Ubld+4WJuRswiBp8xM8Cc7w+iSLNxwGlJVCbQE7RKu+0i92t498pdDkxpdQC15HKqSOdVzhbEurQ 8BGdKG3nEN9+CnYc+r2fCnSznIlpF5tisN2kcE+FDhrmo1pbYIg4pJrsFpgvP4KFup9k1FD2blMGb 94KtjrE2TrwmmGIm5csTvowSfmIVQcTlKMNxC/0uwgUhheDDTj4FPSTLWXUpJXpmeWgG4E+xI8ndR 05JKuhFNZsuItvXTz6XA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r66Cm-004HbK-0R; Thu, 23 Nov 2023 09:41:04 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r66Cd-004HVy-1k for linux-arm-kernel@lists.infradead.org; Thu, 23 Nov 2023 09:40:56 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a00a9d677fcso81663166b.0 for ; Thu, 23 Nov 2023 01:40:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700732453; x=1701337253; 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=1X2LDaMbB0c5HZoTNyhIjHAhgnohEDN3uV01ROjEnUc=; b=nDLNsVVixSaLYb3nyJIvnj42NexKkaqm0Y82HLlssH45xmMV9MbvFSzMRRVCV+Agfj uSiSh4SoLcQR5+ZG7BZJd1IyAHKLoloov06BqRh71qAcLmCYhrTeKigSMBc/nMyMKuon xmdVlkMeRM0pghcxzuGItCK7yFyVmzwYV6eczu58nWalHxOBvUkOoQ7dtbugyB3WzOOb Gt2d29qcCjdV1vMCapBZUt/WNN0f23N9JU5dVup8scNyMBcMj8Z9gViNxLH1oIWgChBn Ev8gPF91U4oS8igLFzHSNtFtr9ViAWFBNHBrPrqVkbn769Y22B8Y4WTeQy6yvl9zcfNs q6iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700732453; x=1701337253; 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=1X2LDaMbB0c5HZoTNyhIjHAhgnohEDN3uV01ROjEnUc=; b=MN/Rj/pBkp5jZkpBujyKHxe9Uoiw6lEzFjNNAHqxUCZG6qdk5imuoqYIeFiK32D+wU D57ck5rYYREXJtwErr5m5DoCJiHMw0qFcc+tuajzRy+rbZSYxGZRk3aPgCfqjavx5+u2 MhwuqdgFul6t1KDzJd/qJQIU9tCJTc735l1J1Dw/cVcRDgzfvEzbdGQC32hnPqTOT79/ kxBbbjJ6UCW//EKuRaTHsMZILf4b7vSusJvAtDN51gxjrQG4epQG2CVzNec7rzb7X0um aSRrrpbnYSTgxerwaO+mtjNDv417ovhyLe/wR4+bMKQD4vuvCaVNDG4axvV6Kh+5LwnZ wP0w== X-Gm-Message-State: AOJu0YzXKSqPgN5tOpVrT2/b7bGPMt2fnDEDYDQwMRyrcshmk/wb/mR9 3CBWe3m/9tGrZtPPj0qIbrU= X-Google-Smtp-Source: AGHT+IG2ldSIvJkPOWRUMwqptBELwha4P3UEDAWFeFhYxPAf0Hq1Cr63BHUft7JxbUZhAWi2pEm5Tg== X-Received: by 2002:a17:907:9382:b0:a00:9550:b08b with SMTP id cm2-20020a170907938200b00a009550b08bmr3262185ejc.24.1700732453321; Thu, 23 Nov 2023 01:40:53 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-c0f2-3200-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:c0f2:3200:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id s9-20020a1709066c8900b009e5ce1acb01sm546199ejr.103.2023.11.23.01.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:40:52 -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, Thomas Zimmermann Subject: [PATCH v5 10/20] drivers/video/fbdev/cyber2000fb.c: remove I2C_CLASS_DDC support Date: Thu, 23 Nov 2023 10:40:30 +0100 Message-ID: <20231123094040.592-11-hkallweit1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231123094040.592-1-hkallweit1@gmail.com> References: <20231123094040.592-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231123_014055_579887_EDA37FF5 X-CRM114-Status: GOOD ( 12.79 ) 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. Acked-by: Helge Deller Acked-by: Thomas Zimmermann 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 Thu Nov 23 09:40:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13466021 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 0C575C61D85 for ; Thu, 23 Nov 2023 09:41: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=pLDT813wHRJHhCrB10hQe3Al2IVxGJ7FBBoAE+XVOfs=; b=vUsjuFaQoYl1Sm QAOgf+dHrrUS66NaQINVk6mW+VbeX+SK1aXSrFBBWF6equZDZJjMnDUrVR6b5z+IhIkX/8Xfj0M8/ gQ7M2XwqKnLP5N9JOaVGVV9qSaeXewxUMFX1gvx4Gh/VlI9023j9u2HXqPta5qLj3D6mjKaALu0rM GA25P8gymQplYaYoiAjJNNUpcfyIx5cvPi4jBV/S++3ihNyRSFzU4GjWsdSAb5zQjuOyyvf6z2Jqg 10XKyFhmR5+YphViAyO1U0osbvV3yUqJmJuwBour9iLlt84uu44AMX6kLC+/uBiLfvu9FvPMU/ci9 lXDIUP0DoZ/YSjwCrsLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r66Cn-004HcL-0K; Thu, 23 Nov 2023 09:41:05 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r66Ce-004HWv-18; Thu, 23 Nov 2023 09:40:57 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a00f67f120aso79448066b.2; Thu, 23 Nov 2023 01:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700732455; x=1701337255; 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=ibtPu02kEx2LQ9A0jvCmJB7jA/c3boGIvN0NginjoG8=; b=gAjSs8Rc4QRy7g9leAunvVHImUZG3pd7fAX8lKdJcT28xPc/OMCUmamKuymiH66V9j EcF8a3RR/RTu8I9t6Jw9A0/Oc5babcxm1mwPCmgbesDf1bagliv1O8DAjjHK/oaxPkVB K+zSaaYd1N9657552ayFXAgxoKS3K7T3MbuB3q0upspP99gE8r8cdjgExZdg3yp+IW19 M7F9cMozekdZV1drjW4xIyjYpZYmyDrTMM17WHgppAA67QLGeRKGkyU/7ITD7amBoSSi 1P6XKgJvsvvC83YdbEAy2MOd9V1VPUe7d5RcjKzZ3HZoCrQRb1Q7pxgmsGm8XD/QLZU1 84eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700732455; x=1701337255; 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=ibtPu02kEx2LQ9A0jvCmJB7jA/c3boGIvN0NginjoG8=; b=VjLnOv8ZXuyVQbt0m4L110NwBh20JdtAgEWuL1g1OGR0PtkzAq2x7PbnrDpGoU9Dfn QkQN8JDm8+/q+3iso8RyLs5d4tGF5Zskp10M5AHvf5Wrca2F8CYal+7zrYaUBPDRPQMU JclQvl5VoP4t8mkrfpNNQKktTCZ8Wl0Ax3nglG4KLG3/nYeE6DrU9zw7RvNQi7fLbOqz OWHrJ1EpmOzCitKGqmkSWE1i1CP71hu5yHG/9hmSdaptZxIlRdQ6dcPSlIcF0KfjPCfE O6wlJihquyyS938TdiUGFwZgwiC4NDmwGyUW9gyTXw/eZvdWgcvkoz0ovh61ji+L1e4k itew== X-Gm-Message-State: AOJu0YwAForOWoyGqAOXQsWDWeT0eXA+2b6U0/PGLN8K8VvMKYXOoMyk O5w/W/Aoi9L7cXBywpaHTN5vLL0lAqA= X-Google-Smtp-Source: AGHT+IEhOkC6xnGbAR37vpV6MkHztMHFrS18pW2+Z/6tkJJXSA5ZZsQMtb3qt5G6Cp1hpv+vQnc4XQ== X-Received: by 2002:a17:906:51d5:b0:9bf:7ae7:fd6c with SMTP id v21-20020a17090651d500b009bf7ae7fd6cmr3174848ejk.10.1700732455026; Thu, 23 Nov 2023 01:40:55 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-c0f2-3200-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:c0f2:3200:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id s9-20020a1709066c8900b009e5ce1acb01sm546199ejr.103.2023.11.23.01.40.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:40:54 -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, Thomas Zimmermann Subject: [PATCH v5 12/20] drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c: remove I2C_CLASS_DDC support Date: Thu, 23 Nov 2023 10:40:32 +0100 Message-ID: <20231123094040.592-13-hkallweit1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231123094040.592-1-hkallweit1@gmail.com> References: <20231123094040.592-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231123_014056_388918_C40FA6D1 X-CRM114-Status: GOOD ( 13.11 ) 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. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Thomas Zimmermann 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;