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);