From patchwork Sat Nov 18 17:42:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13460223 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 A6046C5AE5B for ; Sat, 18 Nov 2023 17:43:08 +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=V/uh7VEtUx+Q+Do/HgQ5tcCVEVgAGMMjcaUrgHRSGkI=; b=3U1meh78KjMe1L E/elfNrqipZ20jWMPZjOXn/7KlrmJUkYvTXv1jTRoP3R/oSoB/xEeWEZdV03h3MT7nQ+6P6y6PVj0 Qcz7Hs6iIpGu8CTPH/c9/hW7nvqr5aeEMHsJUrCPDcsJB93OBD9X2hqGGp4D0ig2T5CcSdlhlrkgz j2Bla1bm2E8c4StqfjkgRoGYgpVynVleQZVSKtwkMgomNckGnfnjY0fd2YzwZ8vFq0dpBiivdjq5X 6u1c0b88pYMtH2M/MlNptQn8DizqIxswMrxkY0DukmiWabzPMSgrwJ6To60P8hKtbPFQvG4/C0N1x 2dj6Gr5+bGiZuw6rWDrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4PL3-008uwr-1k; Sat, 18 Nov 2023 17:42:37 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4PL0-008uuj-1G; Sat, 18 Nov 2023 17:42:35 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4079ed65471so5025925e9.1; Sat, 18 Nov 2023 09:42:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700329347; x=1700934147; 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=Flg3cjX3M0BMzkNxd6dhw9SgkIHrrzmjyvbrc5ZWO1w=; b=EwilQIYh30TInxRzc/7bcbsbQdr6axB3v15oI74eSzBUXKyNfny/BBb/RVYujhYd6r RaxMdxxoYKU+IIbDciQLRtxZEopaF4oJXNziqKtWh0dT1ZkVbxgBJw/+Xq6yS2MYClOz X73En/uxr4wURaUcSAqIafoPH/QpYqb3Hnlqi1bpiRADnuEj2wfoNrQmR3uO4WmsZWnz XXsQy5VOc70XR4XKnCsboMJTZuet6JVKYWqbGOhHaroL991NtoggkVLVMVTVnzW92oCz pFUlHeuTeK+WHVjSRpTrxlZxaZphTk78l1ApPBQGjgQsuEhC+P8gdRD42haCAL1fuj1W tsmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700329347; x=1700934147; 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=Flg3cjX3M0BMzkNxd6dhw9SgkIHrrzmjyvbrc5ZWO1w=; b=Vzp45FpqseX3xVbywjIQQUWVXHrtXcZoJuS+gMbTNPNNkOm15ERySMPbPRQic47gan ncnVGppbsSVvp7d6WxoYEYN/4rTTJooVYTPpkAM5mJnpcXTW13/s+ziRMD034szZOqWF d/G0/M5t9n96UofbCzp0mc2a5MLJkUqHF/uvqb7vdHxjjKQqmfCjLfTLXXrUbcrpJEWk k1x4i6Vi3PMpXlrpxDNU/yuPx1WFg0mac84ollz2zp5XBLpPC4rTlWm8MJsFAKwts8aO IttGxsvv9zP36gCNmEttU4JUXkVGMpEqpzhSjwVqVpK0b2RJFRKUBnCCU7coNOA/WPIc mxOw== X-Gm-Message-State: AOJu0YxaoeqOC2IptGLIK1ABwlZK/yssizN4oY95NlttxoVEDLh0Y/UM bA8rxGYzbt832/xuJ9P6T+k+hQ/9Mgo= X-Google-Smtp-Source: AGHT+IGchLGNn/UTh+TSPBum/ynhaPI5RIfSnYeSODGRmp9mYu+xtswabBOKG8QD70Eu929TNCd0ww== X-Received: by 2002:a05:600c:358d:b0:406:849f:f3cd with SMTP id p13-20020a05600c358d00b00406849ff3cdmr2461814wmq.29.1700329346812; Sat, 18 Nov 2023 09:42:26 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-77bf-8300-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:77bf:8300:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id y10-20020a05600c340a00b004068de50c64sm6964211wmp.46.2023.11.18.09.42.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:42:26 -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 v2 01/20] drivers/gpu/drm/rockchip: remove I2C_CLASS_DDC support Date: Sat, 18 Nov 2023 18:42:01 +0100 Message-ID: <20231118174221.851-2-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231118174221.851-1-hkallweit1@gmail.com> References: <20231118174221.851-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231118_094234_431058_7CBAA5CD X-CRM114-Status: GOOD ( 12.60 ) 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 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 Sat Nov 18 17:42:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13460225 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 32257C5AD4C for ; Sat, 18 Nov 2023 17:43:12 +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=CLeNQSsFV3nux2 jgx0Cig/MJIBmL0bgL9rdUnE8U9eqa8fNQtNIFyrCzFscZb1CuwTPBe27sTX3CwUTYA47FtxNc6yW 1j5N6i45gsLpaHQa0kP7UFcuBlh2IkuHlgMT66GxeuWQtdzK9nvQ/D0m+0GrLVU9qBm+2fTgvMcyN wPEUrA5RwR5ErWtBK7uitIT/f94ak5F0cfOtSn6YC+sQZU2K285HB4/g95HTynCiRQ5K8OVU/vj+A 2tdYkJm5x7aXioE6hBwH43UuAjGkzLpY5kmwl3XfQ0TjW/YwUTFmSOKV27wUxn8nI+AxMc1xqkXyj UHlEdQAtjUhGo9BvV0MA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4PL9-008v0Y-1G; Sat, 18 Nov 2023 17:42:43 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4PL3-008uv3-2J for linux-arm-kernel@lists.infradead.org; Sat, 18 Nov 2023 17:42:39 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40a46ea95f0so5326765e9.2 for ; Sat, 18 Nov 2023 09:42:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700329350; x=1700934150; 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=c8v2WOTmyUphYp/LK2me27TBVWPTZNRFVUaH2l/zj9Ag3+bfbh3kPQM8OpUfsZbDcX xFQ5MQXNxr7fTEaLyQteMGTsPeGCpeVWe2nVggJuG5QnXuDNPSAdqxMBh08WRgVVCLII 5MNgJyWC5XchcoKefz2954HiIAdahE1HKYWlELdJaKBExK2UkrtmOUOGPEEJPPf26s6a I+9SnN6Be0RzD7CD+31nm57aDETlzaBTRCKEq22kUpQIcc6CL368WFnY1aZaT2hOyr2B b8gPOyPTKRpxc8aLFJemEXiU+y0MZ2d2H/Fmwmlwnio/jDI5RDRcSFfE5xhR50mP9mNg yglA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700329350; x=1700934150; 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=WXt60Ug28RPDWwjghfgEX9FEYsVGndYwgtYiTJgdgz9z4fZopyylBbWhg6S25lWwnK zoT2bt0iSYhKlUrS0IBHBYnj7FO+G9NbAh4572utEZmLdCPAIvkwJYvq8XjATrnti8dW 5Z++KX/g7Sss3MTp/DmwmqmZVhnzc4Q0VyyX/Kt7SZBaY0z5YQkqu6suS6I1hPFFJ1jd fdfoDuvJXbk8L4rrBsGqfrtD/my/KFqx8ynIHJ3djoIMbZyVgSgKRaqD5q08+lQvIWKd 6CwpNz8MVqblmrSx/xsmlZ05xktqD7G9bI1Kt3s9XKNWgLeyY+qXB0bhz6VhkupodI8Q RmtA== X-Gm-Message-State: AOJu0YyM4pdqDc6TT4woJEU34wdIywUhqHb/FzRvQYFnHVYJYpEqqouF +VO4i+TLnj9V2YDHE34+aoA= X-Google-Smtp-Source: AGHT+IFhcmh+HF8fxApZE0ppjzudwwON5aQtR0W323i40dvMUD5YGJYLj4L/jEO65VvDn1fpwc/WhA== X-Received: by 2002:a7b:cd97:0:b0:408:3b8d:f7e8 with SMTP id y23-20020a7bcd97000000b004083b8df7e8mr2221493wmj.33.1700329349862; Sat, 18 Nov 2023 09:42:29 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-77bf-8300-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:77bf:8300:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id y10-20020a05600c340a00b004068de50c64sm6964211wmp.46.2023.11.18.09.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:42:29 -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 v2 04/20] drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c: remove I2C_CLASS_DDC support Date: Sat, 18 Nov 2023 18:42:04 +0100 Message-ID: <20231118174221.851-5-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231118174221.851-1-hkallweit1@gmail.com> References: <20231118174221.851-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231118_094237_757508_4465401F X-CRM114-Status: GOOD ( 13.13 ) 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: Jernej Skrabec --- 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 Sat Nov 18 17:42:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13460222 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 25BA3C2BB3F for ; Sat, 18 Nov 2023 17:43:08 +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=gkFtLLnLAMJAT2 uGC1etY9Iam1ELivwvqYq6UU7+Zi2ss94TJZ01923MI5Wt9tPBi8lkO88t37HmLVqRtrNl0yGjlpj yGhXfoWo7xCoZDDbgO4kRKmnvrnpER94Ih4kvGPwAW8CX0jqq/v4xwSYh3FT4v48qkwraz/s6+qj9 tiPU9bSThP2cPBvZPzb/5gQkEllDife+fnvUst5Zur2pe9LYEgKeS5Mzhs4oE9F1g9nGdhIrYKPgV Do+533Qen5E6oPrev7XuXrbF+GF6PQY4Zt5cFZ3tDq2rIqjj3hSb7zwt/XG4MDdjBjuyv3E/XZNXg HIssTEjVvbfR0oHhiK6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4PL9-008v14-36; Sat, 18 Nov 2023 17:42:43 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4PL5-008uwZ-1n for linux-arm-kernel@lists.infradead.org; Sat, 18 Nov 2023 17:42:40 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4083f613272so5494015e9.1 for ; Sat, 18 Nov 2023 09:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700329356; x=1700934156; 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=Ok5qjnU8swNMmEf40n9CJrElGtXrHZYrZ/J50xDLsoTL8GpXOBQ1YkwC/R99BzFPw9 g6n02Ke7QzyvheGiYbagEPbfuVMT39O5MElNL/eyxOUGya+BEcQ5wCQVWXZrgjchSEh1 mlBOwaNg3X+8BiuqxspMUl+CcubqushQvvlznivHmny1/q4N3xAwJBC/KL9NRLdsBvMs MesayB9zPk3Ht9SSKwzkLiLTvBHszUxFf0wozHxOMtuDcLHFvOFyTtOSB6eoiZ+e+Ule Ii84/Ua4pNmAshgWMIuqbfBfjF9Wdnw6drpS0+yqSZ9jSAsdC/2UpiFkEmW7C7VcAchx GerA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700329356; x=1700934156; 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=VEuhJQFTwPRR+xNQXMWKi3qlWbrZSuhjDkeYhq1nIW+74FFPNmDugfwfth7CFSXbU5 4hd/XEsKgve+yhCtWq/BRTW0hWAhX20vdSTIsa4ddvgWJBMHUf+6YNbg8EW9p+GXq52N D3T2Cn7KKRYa/5ljZglrhwjS2jJswSCfNQuWYUVsaFolF+SQmJL3ypP7y5ufabr4OxUm +7VYtXTUIE/EArAVnQUeHZ9a8hHlR0fL7u4JSYj0Exks+qGRtSaxzs2gs93LV65D32It XDkYgvwFBxNcGP0XkoprD439aDcZyeE4pTqv4jY/9ghRd1Z9Q4pGer09CRL0YOQWUE6u w2GA== X-Gm-Message-State: AOJu0YyZ67TZC1HreA6R8qjMzWYBaSAuiPM0KjBCGhzx3ZCGYIX10U+z gta3SjVH0vUsEfii9PlahZ4= X-Google-Smtp-Source: AGHT+IH/UONni9JBi2RCMivHlBv+H1UGwnLkk3yuImh+ir7/RnEejhHlDGLGWXdlNBwBR0HTwihAzg== X-Received: by 2002:a05:600c:4ec6:b0:409:3f53:c9c7 with SMTP id g6-20020a05600c4ec600b004093f53c9c7mr2232492wmq.35.1700329355808; Sat, 18 Nov 2023 09:42:35 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-77bf-8300-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:77bf:8300:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id y10-20020a05600c340a00b004068de50c64sm6964211wmp.46.2023.11.18.09.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:42:35 -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 v2 10/20] drivers/video/fbdev/cyber2000fb.c: remove I2C_CLASS_DDC support Date: Sat, 18 Nov 2023 18:42:10 +0100 Message-ID: <20231118174221.851-11-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231118174221.851-1-hkallweit1@gmail.com> References: <20231118174221.851-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231118_094239_594421_000D4594 X-CRM114-Status: GOOD ( 12.97 ) 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 Sat Nov 18 17:42:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13460224 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 7F47BC2BB3F for ; Sat, 18 Nov 2023 17:43:10 +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=OG/3XvButotfHN 6OoZT6aKNC8R2wHw8jHsSSRKa7BGyv8nRbIY831pzXBc6CYtw6BMsoBfIIamqqp+liv7rzEts1vAz JGy2ixpEMISyEAX9zTt5ZijZz3ERvGjycYOH22iqHZY2l9D6AkCC6fQs9emYeRQOVVLOgTXO6dif6 UF2kGi2+ihQh+esSZvbQygPg2MTzyveZVN7fPHbSsa6zSDygO3Cb3R4KTV0tzi6gH7iw64HlS0N20 bNDkDGxobvNGz3PIy8cZ0KqMyiZkaazM8mm+ej/yveNseRZKE3VMzrFJZeg63gcJZ4jrtckXei/9t QIVd3OFfgtb9yqR34bBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4PLD-008v2j-37; Sat, 18 Nov 2023 17:42:47 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4PL6-008uy0-2u; Sat, 18 Nov 2023 17:42:42 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40853c639abso4729115e9.0; Sat, 18 Nov 2023 09:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700329358; x=1700934158; 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=G2U11yC8Fr+2ceR4Y+UiNkwirYbCjTOb1cgw9PHbF5fvhaZ6WRAVVq7RplvQe+Lg/o nq4VlIrNPmzu8czVvwAsvSUvCnqKuoDNH0sKmvQzXNyBgqyitTnoO2GfwRfvURyhMSGz ww3L/D83DkG5qs4OZdy9TanNVtswOKUj4pAdloKlVA9/u2/EAfpoV/85EzXAemjL+6ny fvxZCsvkXwl5fntTUKlZ6b9BQUJpvmUlDHB5vCt2DXdEoR9hV6GRNJgHerr+wSIJEH+L 66otLpIDBD0R6Il+c3LQ/iFuHIUrhiwLE9usQjlSD2SYm8VI1f//aa/C8IqgMECccps4 I2YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700329358; x=1700934158; 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=pkmA9xPaSd4g1jXU9FmTgKr9DvMyH8R5Sxae9+oNGMn9fIhOF9/08zsdm+adVJLW86 AaYqZS1gnS+oFjvGb6cXwDoKseKVCI3c5sEX6xI8QLHSK+ooYW1HlhSXn3wLtKmg32wY ESebhjzbTZRIp/zqAUytc/5SL5F5gwOXyzV4ZKnon2AYAjiI17fguKDTVvir77+SiJ6I cX5EXE929P1y76mlzriNcda4EAz44NShf7mH6fkwNGRejpf3Ahpm5Jqv5vpVXXpuNo5V jE9KZlBLYVngGoar3ILUoMIPwVmQ0OFy1e7ox2IvCQWgio5y6HFTlze4ZrGxCEmJAlRA vlXg== X-Gm-Message-State: AOJu0Yx+Rj6O2v4dqXN79M2BoL8TVpgrFMlkxY1nH7uH4aRCB4giX1xR X/drosNwdvZyL6ZVof0THKQ= X-Google-Smtp-Source: AGHT+IE8c5V85RdvcwMzWAbBlQPGXZHeMjHZ0eSrzhGIJjdv16HbHYiNDOuMRSlBwb03Yc7GkrviVQ== X-Received: by 2002:a05:600c:22da:b0:409:136:469f with SMTP id 26-20020a05600c22da00b004090136469fmr2103392wmg.38.1700329357997; Sat, 18 Nov 2023 09:42:37 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c22-77bf-8300-2223-08ff-fe18-0310.c22.pool.telefonica.de. [2a01:c22:77bf:8300:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id y10-20020a05600c340a00b004068de50c64sm6964211wmp.46.2023.11.18.09.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:42:37 -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 v2 12/20] drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c: remove I2C_CLASS_DDC support Date: Sat, 18 Nov 2023 18:42:12 +0100 Message-ID: <20231118174221.851-13-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231118174221.851-1-hkallweit1@gmail.com> References: <20231118174221.851-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231118_094240_952661_4CD68BEC 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. 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;