Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1614767rdb; Sun, 19 Nov 2023 03:31:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1n5aU3jpAhjYMJdZKa3FaOWBnsgVt+g/RQ8bmgiJmOJrR/LBdGPZILwAen6zTx0DsqonD X-Received: by 2002:a9d:6508:0:b0:6b8:f588:2c79 with SMTP id i8-20020a9d6508000000b006b8f5882c79mr4734317otl.1.1700393506112; Sun, 19 Nov 2023 03:31:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700393506; cv=none; d=google.com; s=arc-20160816; b=fi7tgFTk1Jie0ikMUHrFGmSpsEESi1PkAkHuO6zH885myMv4zFzj4fzjXsYHLM+vqn 93Oz0oui13DSOG/P4p6eN+PxQykUTUuIm2ujeApBzC9FqxKeLr/QfP7YQgG0EARH6wxM hedZCixcIM4Ox8aaeIE+mpT68UQObnmHVPA4Hp9uNKAb9rxVL7wCKclzlBVfJZc+UiMF WPjEtwEaCq8H9vRZm9r0SipTy0CU3GJZTcCNYBKI1yC2WI4v4fB/ZJPU15W5UTY20cRT 9nrhiLEFIV2lHdeVAq7OepqQbgzVLl3Z+riK8zDahqgxXeDNIry38mPbVvQlP9cT/Tht NqzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=anw5D9jgaSVgoYwRFPH2zMk9qB9A7j/26DqujJWuba0=; fh=mdn0Xg7T1DRDsiBJmE4jy3d2hb+yAFsrQVWwTzDkibA=; b=fJw1W267wHw85kMJ+15hwUo2GndCcRoFx1dI4UzOj0lV7lHyBsjq95HGgTO+Jun4UF OX3HW6BLaJhZ/kieauB/CGVf1Yx9VcuLEHTq1Zpx1mbdwwX8Zz9ZXWa2RTu9tnkVX6x5 VaV78i7vrZiBzPTjLylnJ/w9EQI+Tol8puzilxCUAqYy4iOf8M8AwvSGF9givrUZfh0e JYvM4xUW3rtPqWdKSUAh+sG47t4seIXJaJLzmymoMcatOEu7HuFVfGpxhqb9o10iAIeM f5Za8Vr6alEaTvlII3A+tGoUR9InSCeCgjDYLJTP48PtXI6oCO8ERs9WhzlCiowarJIX varQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XMXLYofp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c7-20020a631c47000000b005ad8009e304si6070932pgm.784.2023.11.19.03.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:31:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XMXLYofp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1A781808E552; Sun, 19 Nov 2023 03:30:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbjKSLaA (ORCPT + 99 others); Sun, 19 Nov 2023 06:30:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbjKSL3U (ORCPT ); Sun, 19 Nov 2023 06:29:20 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB8C10D7; Sun, 19 Nov 2023 03:28:47 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-548a2c20f50so463705a12.1; Sun, 19 Nov 2023 03:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700393324; x=1700998124; darn=vger.kernel.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=anw5D9jgaSVgoYwRFPH2zMk9qB9A7j/26DqujJWuba0=; b=XMXLYofpTs4gBA9PYGUJgVYlpzmC0xTSI96qAH11s3ojGb+0KvPaCrn7GqYl0Fvyea hUpChstgVq9XdIotHdC1QuWSQ1wQDl2cxBSgI/rwYB/eGtBWqxRgxA7xS3jQVj+azKzi 5N3eHjn7L3JGHBdbRDJEyldMKXZV5ssiSr7HJwp6iOscJJtXdPIuxgXrj1w5gjQnO5OC alkpxe71bBdtl6zFLItXlffyXQzkbb+pv2mlaP+VAVEgKA5zF0AziqX0xtKCjsBMOR8j xffSJTedU+hKWH62cqirPt8htlcv278XNRgbi2dZNZK47vebro6dRAogG3yNOaTJlsJK HarQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700393324; x=1700998124; 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=anw5D9jgaSVgoYwRFPH2zMk9qB9A7j/26DqujJWuba0=; b=sA29QvRSVrAix6epP16/elx7ltvWcP+Z0aZq2XPQa9IEwyrvz5dYB5StpkmL93QjHC wXg9wqhZOpnz5hUn3gGuI3nTlYMeM4suIu3iv/Dd/Amgq+6TbWHOuHu0Y0Q4/0APA7Xu n4SxyqIUTCLSiA+cxafDPgMxtIFeRBl1tf2pPfvUu6+9vvotIHXNoBiqcojipl66moZK 3Ur/xSb+DkiHDu9OLS+bPETK77IqDkeidXYaRAU4XkWrmMmUtTIqeL/WyTTcJrOGURML /Eor0EG9FqLrBipQTK0XPeLXvNj+dhEhnJ32nAqbVfL8jEdutsyQL6HmMrWqFDcSZbPO N11A== X-Gm-Message-State: AOJu0YwqxWwXomdBEdKe99Kg0bXdoh/i5ZM7TvMRIIJK8IbYGszXYVc5 0ib6/rqXrTnh3FH9JqkHgPWO38M9h+GEow== X-Received: by 2002:a17:907:1ca4:b0:9c7:5200:e4f4 with SMTP id nb36-20020a1709071ca400b009c75200e4f4mr5046586ejc.41.1700393323809; Sun, 19 Nov 2023 03:28:43 -0800 (PST) Received: from zotac.lan. (dynamic-2a01-0c23-bde4-3e00-2223-08ff-fe18-0310.c23.pool.telefonica.de. [2a01:c23:bde4:3e00:2223:8ff:fe18:310]) by smtp.gmail.com with ESMTPSA id k22-20020a1709063fd600b009f8af454d0dsm2420378ejj.112.2023.11.19.03.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:28:43 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Xinliang Liu Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Tian Tao , Xinwei Kong , Sumit Semwal , Yongqin Liu , John Stultz , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 16/20] drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c: remove I2C_CLASS_DDC support Date: Sun, 19 Nov 2023 12:28:21 +0100 Message-ID: <20231119112826.5115-17-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231119112826.5115-1-hkallweit1@gmail.com> References: <20231119112826.5115-1-hkallweit1@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 19 Nov 2023 03:30:26 -0800 (PST) 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/hisilicon/hibmc/hibmc_drm_i2c.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c index 410bd019b..e6e48651c 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c @@ -81,7 +81,6 @@ int hibmc_ddc_create(struct drm_device *drm_dev, struct hibmc_connector *connector) { connector->adapter.owner = THIS_MODULE; - connector->adapter.class = I2C_CLASS_DDC; snprintf(connector->adapter.name, I2C_NAME_SIZE, "HIS i2c bit bus"); connector->adapter.dev.parent = drm_dev->dev; i2c_set_adapdata(&connector->adapter, connector);