Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp214447rdh; Thu, 23 Nov 2023 01:42:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIsRLdKi4xE7DrtZ95Bf3AnQYMzBZTu/d6Af2ERrvilm6F4eq+qC8cbPxQRqm5WTvwIT+u X-Received: by 2002:a17:902:ec83:b0:1cf:6453:b27a with SMTP id x3-20020a170902ec8300b001cf6453b27amr5930687plg.12.1700732550088; Thu, 23 Nov 2023 01:42:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700732550; cv=none; d=google.com; s=arc-20160816; b=DvUDocwfEQgOLq0jaywqaJTZfNT4AO/lPPiqsS3GaFDJT0iinlC0LJ09BqlZsWB+5s sUS+dF5mFZXOSopSMh64vlGa9/PBjVniDa1qAH5V/wbG9F/3yz9oUYkpG4XXMMdXHNKs vbsuv0IwT47gn5YrjCFx4ciT2/q0v0Se5kqNnXqf/OzDjFaInJrke7rU3PMSIBMFjHul +iBp+4GOQCI+CjMrbu1rVRP+fZ/ZHZucmb29v/+XTuWbNBGEklpIi23v1C8ksLf1dfHx Qb7u9TNEfF6uez0vfXZiLnJto2oIp/TqNOWIMpAnlh5NG2nBGOeZUZYJZIZ8eF1DXmK3 OxJw== 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=Pq+FEnQba7Sk+IX5HM84oJaaaLkn3lu8uiYE4NrIrFw=; fh=mdn0Xg7T1DRDsiBJmE4jy3d2hb+yAFsrQVWwTzDkibA=; b=g8O45uTGFtORRfMENCPPI9WUP+tyvm+c3m15QM/Mcq0RulOIN02/FJYezP+9Bzwnku Fm4RvrF54mjN5Y9TRMGykdJ5A3e5yVeQ8KJRiRegH1NnjuVWMvX9WT2qga2Mh75F7D0g 7Yjc8zuorshbngc9sOxHbnAWMmtz1z/FGWLGokC9oa67v+8pjTex1hPEnP/1CBEoUclz YjY4F1DbbiNTNw8io8Th/gmmwCR2MQ4NaNiH0yDLbRXZ1KwsURztZenUhFy8Rw+qAVQT bXzrlP0709CyIkMaywxj3VinQg2vN7j3TME0gLjLZHXXG3vsGMiUIrh41tEOubovzBQX 9G8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fQ5A0zqC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b4-20020a170902d30400b001c1e1fe16cbsi797372plc.255.2023.11.23.01.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:42:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fQ5A0zqC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id BCFD58082CC9; Thu, 23 Nov 2023 01:42:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343587AbjKWJmK (ORCPT + 99 others); Thu, 23 Nov 2023 04:42:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234999AbjKWJk4 (ORCPT ); Thu, 23 Nov 2023 04:40:56 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADEB810CF; Thu, 23 Nov 2023 01:41:00 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a002562bd8bso135524166b.0; Thu, 23 Nov 2023 01:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700732458; x=1701337258; 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=Pq+FEnQba7Sk+IX5HM84oJaaaLkn3lu8uiYE4NrIrFw=; b=fQ5A0zqCst/xtjHsSgPmt1rCFNsbOWd3YRJQ3gQRYNcaBsY9RJbu28Eip1orCYrHfA IKyRuY/c3qqiNr+HdAVIgMpUxjwV/uWpyjYH/zmALwRc7TLxj6X1iJs12VnbsFDOp/LJ rL/onbKmDUUfIYbS1upJn21YSUutXkN7SGdSAiNJUjDfxzsxFSvgArH0hqLG6f1CuAGC m2y6pjV2fuuBAqjP6KB0SSEzGoAqKhcCSgPGmyfOUhJ2P+OKIz3i6BF8jWUyAfALnUQl qyYcCcTCfVREg8qX2UegJijmQYyksiwz8Ru4onwcs0EnM0akDmh5E0usdC3tdq8pXBk9 B9Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700732458; x=1701337258; 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=Pq+FEnQba7Sk+IX5HM84oJaaaLkn3lu8uiYE4NrIrFw=; b=mOHLh7o4k7B/d2//uL25lr+jzkJb37Kv8McWgS26lvtDuEc5MslHU6hKB2rmbWrHWQ ewUP6m2ZDcZegHRvTWu5fIkH8IwoHcL4NYvFn3AEnVjC5nYbP8CyM+327611AFuL7IZI 61Zt2eOoncFPEz2uWIHuWcweUo5kdqgl4F0WGdZoiNtSkcflARvmC4OCyAK6fwE+8JTl O0Dp4QZwZy0Ca18hqp/fYMtZI3rQnD3bGem1qiNJfE+es459u+joEhBJkxg99ggwGbm0 xhG8Hh2zxTVEq24eJmW6Ze7zLhq9iEjBH2Wn52gCN8xaGImYarihk3SVxrat3ZnEEdFs OkBA== X-Gm-Message-State: AOJu0Yxi6hvtunOPtx2aLacAXqdJUWNzJ8UQXuZPMaVMBaXAsTq+/a+S BicrjRjJ/E6wLqIsLiOyGW0= X-Received: by 2002:a17:906:78c:b0:a04:e1e7:d14c with SMTP id l12-20020a170906078c00b00a04e1e7d14cmr1774196ejc.32.1700732458571; Thu, 23 Nov 2023 01:40:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:40:58 -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 v5 16/20] drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c: remove I2C_CLASS_DDC support Date: Thu, 23 Nov 2023 10:40:36 +0100 Message-ID: <20231123094040.592-17-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 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 01:42: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. Acked-by: Thomas Zimmermann 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);