From patchwork Mon Nov 20 21:46: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: 13462157 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 67B4BC5AE5B for ; Mon, 20 Nov 2023 21:47:02 +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=ve05IhhyXkRR3v Td6GJ/B7TVZtadwjlx4659QiDg8UAyoe3EjDOUKp3JeA1PpOe7+cI6FdiELBBe8XnXjS0AjGRhjtQ AHS/0W5XSnBNkMrTtq6yEiKWG2JA8t/9cL6gpvDWpRMILoDcBgVVzPWU8pxSeboW6EluRoiJ4eazk vA0sfeYy2jHK94x29AZ1wnv0T+D/wLlVCjimeT3vcogQwJ13UB2F8MnwjyMVshAgwW3WPEomrGd7E XS6bYJKtitXga/DbSvhBfeo+LhoM8exF2KmpsPqnARdmSdqPcFRY4zFuhMf4Uw2QCSTMSnU9vBVAg uFn7rSNgmJh+8NHPAiJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5C6E-00EuG7-1Z; Mon, 20 Nov 2023 21:46:34 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5C6B-00EuEZ-0Y; Mon, 20 Nov 2023 21:46:32 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-32fb190bf9bso3580961f8f.1; Mon, 20 Nov 2023 13:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700516789; x=1701121589; 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=Rl3UA9XPvkRbdVgOXpxWqUMJj9WgmMfCoHvN6EtI1oAhU+D1pL3DQzmUjKvty3Kn3X /jb34SIqRtjb2xZg/mRc9ypXSHAiEDQQ9Oi+6KQxnzVsykMmb8Mrzvg0sjI+7C7Vym3j CErV2pjt5YyK9OS6rk5JrDY0x05kVKf9uh3cZowXB3o/2ZQ9IZRsV07ruyfD0tCnAbrp Iv7kJlkptmLRt+03E35sugONNQDX/mTjL4z7d5eVu3WlZ+w/VJXrTE8RxRKnygr5wTjX MWj7LAHpiyITlYrBieeCW2r+ylhzQhEJpPJve4oTMDvddtaL4h+LOzw/LEtfWwXtQwTJ Awiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700516789; x=1701121589; 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=j3MW9TDjKeFTH0aKybB9uf+ZSZEmixL3dW0tFXjaOmgPBI8C3JuUJazslhLSe5Eo80 r5rKvXQOBA1cQqbc2jqdVdvMcJ9A1u/XDotLE6Q0lw8S+LArfQP3iyTAo0u7fHaMd4yf wvcNJoJC62Hh34oniKRAoWWBC1eh5jIENxNeG1UIDnEDt+YuV/BmuEdH55q0O2EvmBsR 8MJW8uY29VuI4wJfNSnlMc7B3851lxsw3/gf3dxPWu0PTtO7D0HBjrUjr3hIHSp5H0LN OElLAQ5q2ILjnE3kFM71kiK6mbBAnZu8ioVtW2JQrL6lLYw5+lqVPQxjUrcpPt0UpMJo LNiQ== X-Gm-Message-State: AOJu0YzjkhXii4ePjMTutKerlqsVVQCU+0PskgmciktKhLiocspN2Tfi qrXg+/dXKbeheZDpG1FICoM= X-Google-Smtp-Source: AGHT+IE5KIoURghYVkvfU5wQxiGM06yHQWDaD6hu7bxfA9LnXbZJ41nQqt1tLyyxToNmpgxikLPPeA== X-Received: by 2002:a05:6000:156f:b0:332:c432:b7aa with SMTP id 15-20020a056000156f00b00332c432b7aamr663360wrz.2.1700516788640; Mon, 20 Nov 2023 13:46:28 -0800 (PST) Received: from zotac.lan. (dynamic-2a02-3100-9030-5a00-2223-08ff-fe18-0310.310.pool.telefonica.de. [2a02:3100:9030:5a00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id i13-20020a5d584d000000b00332cb0937f4sm2667052wrf.33.2023.11.20.13.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 13:46:28 -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 v4 01/20] drivers/gpu/drm/rockchip: remove I2C_CLASS_DDC support Date: Mon, 20 Nov 2023 22:46:04 +0100 Message-ID: <20231120214624.9378-2-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231120214624.9378-1-hkallweit1@gmail.com> References: <20231120214624.9378-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_134631_238658_80128995 X-CRM114-Status: GOOD ( 12.59 ) 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 Mon Nov 20 21:46:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13462159 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 C21EDC2BB3F for ; Mon, 20 Nov 2023 21:47:09 +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=1ZcB4YkmQE1xj95LgMi0Ce9271KkXQSfTlgrDiHHLfI=; b=3Vxz5gEcTa2EXg x9/O4JJMgpt/nnbNVxs0YQE8U76StzwIk+9W41ImNLQ8+NJEDJra++SidTPw7gF9BpM0HtxIYivnU IsWuB1HnwPn8VT7TOVOOm39rahKkOZyHyH0cvhh5uUay5/gvqByXdoQEKVhNyecCHsmdJzWhiGaq9 MCCA0Ts+hZp0yVHrmqDPNm9rWhdt5Z7rnLWDC3S2uccqk8wRk1qCeHY6Jdti+ncphIFIcTNQPqyNm dUudrv98SwFE7PDrrA0x4+MFr4okkBhRoxFidah3BvMBlAd1sKVtzL5uNNg6moGsq4Nq/m+IKSu5R vz5jFcxozIXVCcCfTbLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5C6N-00EuL3-36; Mon, 20 Nov 2023 21:46:43 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5C6D-00EuFC-28 for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 21:46:34 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-332cb136335so707127f8f.0 for ; Mon, 20 Nov 2023 13:46:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700516791; x=1701121591; 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=UFS8KKprIzFM0zE+Ai6M4ORed6sy7M8DbezDgWX5KRQ=; b=WqBB3W6pXs9wZ47F1Y7R+FUK5dtCS4Q9eo+/RakVwO19Q8tJwhMSdRJFr/UbpJ6SWL lYJNAhiFlQtAsTONd9BFVl790vTXP3KwOL97fSAPcyQSagOfgZPBzbb+hhxL1nKcmLPi gFOPWcR/EIV2En0zYeCjTxslTJQq+epkCDdo+BDZzkWoiDnI7Mlcc1Q5AER1KVI0IOKz Zz4DHcA+k8UvxHpLMUXzsXfMAK6NhhISQXx9W03Sn9bjc4Xhx2Q6oG8W5ZrZCR0mBC1s JvjsNZPDZDf+RwacsjStDzq3VlfVW3XWYbsAwY2cFKcIxciN99kkN1IIOuiDZocfEZcB E3Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700516791; x=1701121591; 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=UFS8KKprIzFM0zE+Ai6M4ORed6sy7M8DbezDgWX5KRQ=; b=D4RNtdZIWQ0tDU1c20spgGA+nPp+ocSJ5C9iW18H08SUNGASu3Pc5KvZpZ4QSkqcZO CEJaxZ1dUG0/OIG5hQWhaLbsItVvZGIrHc6kO3Pg56O3hFSGG/W76AX4FaYTVw+obZBR zd8vSZ7cn29E+1tPsvtohWLmH4Fp+jah5zxeCtnJapl/rV/5yspVLTNWT1nCkeu2vHHv cn5Y5PyL8y58BBMOBmB1e+KYd56hTKx0riaCi0nyW/SobctVan8t1lqmP1Y8UrrP2str QZTzZW15easTc0boQsVdPEUS8avtiIlJrveBdx5EfUzy5DK72bnK143mKo3dGJk7jRil 5r5w== X-Gm-Message-State: AOJu0YzknZSbfLuhiTIMIbNQA3ZVTNRl5kZDL0kZz0CIA69FKrSVgYuj FX9ho2AOPDP1ziREnkwTZ6A= X-Google-Smtp-Source: AGHT+IGIRCD7UdLrZN9lSzHXmAgpmrQY5+HhoNLOuQvKT6vBAsOc+D+u9/DgXsMWlG54R5krCGbd6A== X-Received: by 2002:a5d:4151:0:b0:332:ca69:2fb5 with SMTP id c17-20020a5d4151000000b00332ca692fb5mr1904733wrq.11.1700516791362; Mon, 20 Nov 2023 13:46:31 -0800 (PST) Received: from zotac.lan. (dynamic-2a02-3100-9030-5a00-2223-08ff-fe18-0310.310.pool.telefonica.de. [2a02:3100:9030:5a00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id i13-20020a5d584d000000b00332cb0937f4sm2667052wrf.33.2023.11.20.13.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 13:46:31 -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 v4 04/20] drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c: remove I2C_CLASS_DDC support Date: Mon, 20 Nov 2023 22:46:07 +0100 Message-ID: <20231120214624.9378-5-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231120214624.9378-1-hkallweit1@gmail.com> References: <20231120214624.9378-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_134633_710644_8586EEC0 X-CRM114-Status: GOOD ( 13.39 ) 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 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 20 21:46:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13462160 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 3415DC54E76 for ; Mon, 20 Nov 2023 21:47:11 +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=+Bil2DTVwoALJdG/PcuKeXhhPstTc4mQ/Zf1kLFqLEg=; b=YchMNq3BKPMb2i G03t61vEMluem7UOuYKOl+1OW7/xkTaHZG1tsxEf8MNYZ3YOUBVeuuvcVstXH9BeWzzl91PLQMGS7 W1IjX5rXI3O6L19WhR9oubW22XA4j78p2ueHHSNJHqGlCzoaim8yA/zB2cSzivt5R3jQcfVV6xqsQ prqmE0j9a1N+SR5GdpmABORnKF9AhXsRkJC9bYlJgh3+d/w0BOuxl3RLWayKm1IXInksa9yPwdFP8 iyH1ZBANEmRR7cj5UygE2Kdl3jGy4W1TDu1MA29qUp7ZTd73p4h9KL7OpF8mcQP9XGRIC84q16gA2 3o44ybnkS+oxnO26olvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5C6O-00EuLX-2K; Mon, 20 Nov 2023 21:46:44 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5C6I-00EuHX-20 for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 21:46:40 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4083f61322fso20424775e9.1 for ; Mon, 20 Nov 2023 13:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700516797; x=1701121597; 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=05TjyImSoTBVtC1xNXeArH35uiTcm8HxTuw7Nbu59W0=; b=mqdnSDd1yc214I9TZTvKN0jTC56Bm6ffBaZGz4yrxNd57XV+eCZsNd28XSYd7GKVQA Ct0Ud94byEyyRu/xi1fA49aVow9a880yljWBvd+1XTYgsA54c67u3+nAUobJ9sejCnrv Xkz09hvWIfWXF+zvnUo82oYuFV/Rn+SXUWehqlfAW8SOVcIcDD+CN+zGnQuFEr7ez0vm AR+7kZ5cQmmz/82bE+tu9WchU6sLMNyX/rppodnVvedk9OrQceHhH+rtHfTRxroejJ3/ CSEUU/rq9L9JjpXbLOYUlCv+fP3My8SB05iGgVv/vYRXBjklVMqEYpz58WY59gqKfne7 IEJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700516797; x=1701121597; 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=05TjyImSoTBVtC1xNXeArH35uiTcm8HxTuw7Nbu59W0=; b=C6ZLdFHkBa9qgT78PL/Uxzd67AuoLeDYAPOXfGOhcIoGKqnuMgafDPR1tWILgU3snv nxdcRzTuQzNxgM9AL1DQbQ8WYH/MDfvt7EFTAfkXHW2jnasg4wMb51oaQexJAu6YXJPv vh/g9L0BZ1dE+C9fOtAEUPLcSgAzCJuKY22SKnILbLYxk9ko5ZVp/yo0aE7M5mZGeqAc 19GIlrbJb0weG5OsrCKaNhT4fTBrfEQ5SNI4B8niXUZpc8/uVEb4FafxsC086FhybbzY inU27hi4IU9u/BBTd7inDGE4pNWsMeqvcR2ISC8GqPYufURj3SAEi5WV2+1TKJCzdyAS 0t4g== X-Gm-Message-State: AOJu0YyFmL4L5ULc7Ny5X3ZEb/iLCbk310gR4+aeL/KAXykOVEH4R3iL 7CaTVXVPKw0fWczHGBdQxc7tb25w08M= X-Google-Smtp-Source: AGHT+IHJoVgqVgRHUKYiAlqB4jK5099Vv0cVK0mL31SC+jI+u/8+HbpYjQSSsu7PjIpJalcA1ZWpRA== X-Received: by 2002:a5d:64e8:0:b0:332:ca10:388 with SMTP id g8-20020a5d64e8000000b00332ca100388mr2882898wri.45.1700516796963; Mon, 20 Nov 2023 13:46:36 -0800 (PST) Received: from zotac.lan. (dynamic-2a02-3100-9030-5a00-2223-08ff-fe18-0310.310.pool.telefonica.de. [2a02:3100:9030:5a00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id i13-20020a5d584d000000b00332cb0937f4sm2667052wrf.33.2023.11.20.13.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 13:46:36 -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 v4 10/20] drivers/video/fbdev/cyber2000fb.c: remove I2C_CLASS_DDC support Date: Mon, 20 Nov 2023 22:46:13 +0100 Message-ID: <20231120214624.9378-11-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231120214624.9378-1-hkallweit1@gmail.com> References: <20231120214624.9378-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_134638_782942_148CB9C1 X-CRM114-Status: GOOD ( 13.12 ) 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 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 20 21:46:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13462161 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 D22D6C197A0 for ; Mon, 20 Nov 2023 21:47:22 +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=grhuAKKbJVRVIazVr7gMARVz7bmJkbvC6q47qnyK51Y=; b=o0IoT7X10e3Qni gbp2rM9T9+SXc0LGbHLHXfsSRynLrMJ8bKZiu645G1cOwxausOdXDM+/oRhRh4+6gqr1tkCpT1rix hbUrRC1XCHpSw0Crt0OK0v3izqqTioPs+gBPk0GIgyNVjYW5Yj/pYNfKSzXlRwDqAQzXi/3ds6IFj pJ2itxa1FP9BZw0ohZcFByOKTiinTv4ZqmM6XRUwQe1IR34eHEIUavmxsO+DZVRvHHZ/5W1e/J/2F SUPtp7uUd6GpIzAXBNfAYH53RqQ8k9ralCPIo9HY0YbbozfJIbhjsBW1eK5Ul5RShMPcm4J/j9dnO NXAKZSZxd0QyEHL4D+WQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5C6X-00EuQm-0P; Mon, 20 Nov 2023 21:46:53 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5C6L-00EuIQ-0S; Mon, 20 Nov 2023 21:46:42 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-32fa7d15f4eso3781045f8f.3; Mon, 20 Nov 2023 13:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700516799; x=1701121599; 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=IHtXO9XtiC85W+x/HW1S1eU0VwIPJlyCXEkRfSi7Djs=; b=jQZEbR5KNLxQiYYrf0gNGVfQPvBZiAQDEyNZYX5+s4sC53F8i4+399R7ztgKvIjPgc 9utOVoK7a8043zyXgjw0ufjlZbeAQs7BstQwqGbbjFachnD2dB9TAYzms/cW2WOTfL+V HL6JT9T9M1YlwV3vUA0Lcy+2zB+S5S2mYe5gtJtk7i2PF8SsEo3me/p3MXChREd4ZzZV Gxx1q3ke90L20lzHGyv1rqgN5LFMqk14m/kwkBSu7tETSZrLtqur4y5HqA+IbHV20D4J BTHaUxrRdieYpNPR43j2WfORq422T9OgcXm/gv+BB2IRIQ+58QJNsqCWwzf5w8NFeLkF ekZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700516799; x=1701121599; 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=IHtXO9XtiC85W+x/HW1S1eU0VwIPJlyCXEkRfSi7Djs=; b=MluGLpSKcVBe1i0CTSiyb2uCBtgjjrtrI2BXjDG2h28gPioMxbJKc7dZFqdEsf8Iwz Vy9ivNrnQUvyEMhqa2PhXn8tbpf8+sS2bNvhkMWYLvZ4rYFRQkKlAOytxiGibDuuVRFt Owk9T+J24LRglUaQax75YG2BlMCYmHOlS6jXx54WH75dkAjMCClvko82NuLxsC7G1C4Y aI1Od+R6G8wGKiCL04Ct9npqqh2rztGLtaFb8Ar8HHDgXEtgVJQD52YHQCORdw0X8phX LMNf+4zNWrXrpkdx5yJgQr4XRFdS/WGMI65jwAzHZir9BH5awvXT6Qp2ivh5JlwiOuin ZXIQ== X-Gm-Message-State: AOJu0YzTB7JZEw6BlJu2AFTwO250IVKAhfn085AI9LnfaHUwwTYZVHdT pZllr3o8AUA7Ky/6SjJzWmzKVKdYSe8= X-Google-Smtp-Source: AGHT+IEPEt13Bi9UDLuM7ucKuA1EJUrPpC7p/7AqpQmlWfFXaZtyMu7XxxZkwo1OTgJaGb+DXzLqfg== X-Received: by 2002:a5d:4531:0:b0:331:6df2:3603 with SMTP id j17-20020a5d4531000000b003316df23603mr4725750wra.61.1700516798842; Mon, 20 Nov 2023 13:46:38 -0800 (PST) Received: from zotac.lan. (dynamic-2a02-3100-9030-5a00-2223-08ff-fe18-0310.310.pool.telefonica.de. [2a02:3100:9030:5a00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id i13-20020a5d584d000000b00332cb0937f4sm2667052wrf.33.2023.11.20.13.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 13:46:38 -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 v4 12/20] drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c: remove I2C_CLASS_DDC support Date: Mon, 20 Nov 2023 22:46:15 +0100 Message-ID: <20231120214624.9378-13-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231120214624.9378-1-hkallweit1@gmail.com> References: <20231120214624.9378-1-hkallweit1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_134641_246857_E9E172F5 X-CRM114-Status: GOOD ( 13.10 ) 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 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;