Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp214525rdh; Thu, 23 Nov 2023 01:42:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEX6uGZmQ8SwvPb2CjwR5KCgxXQjCgbh8m9cgnlU0t/qZABPrpxMTt4i/usWqzTAA67CxZq X-Received: by 2002:a17:902:9884:b0:1cf:9790:f23c with SMTP id s4-20020a170902988400b001cf9790f23cmr110322plp.55.1700732563405; Thu, 23 Nov 2023 01:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700732563; cv=none; d=google.com; s=arc-20160816; b=IcE00l5ERIMGznJutCe/+hOvEYRmcEmZLtlmt9hLee+/svPEq0di1fM5iXfWO96a85 Q6gFclxe5QiD9JV/xoQrdgIE0bqDb9VPNkAeGdG4ToLBj9zx/heIf9jsodeQPR2fibmX rJGJPK8bWrtSTZk+QPJ2DPbQjAdPyXiI9Dnl4NBvPuzbjxbROibfvyio3XwBclXjYCEE bLufGyZ5lM0ljAWdh0VRHnzzK+ED0koH6iPX4EzQphExk2bzOiySXqdPVbMX7GMl2uR1 Wi9f6cFjHjhQIlI33JKkvj3BITWORZXz7RPZeA3tG/+bqrXyMwyjwNI6eLikF1bfYLUQ fVyQ== 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=lHDf4R0aqtCOREGjSJoba2ofOslBc7XL2VIsmReJ8Yw=; fh=Bqg2HjXGkG68T4u5eOHUmMzI/8QfdaEHmj3gRBrO8Sc=; b=E+w3yZ2ORGobZq3AzPhiChbhdaVrzF4OEUrX1+BBQbhjPcdbxtCeyB9j/64cD19k+X OEwzIUYpBOvANmeKW3goejd0VzUVUFBxZbzD5MsIX8m5YvaFdUea2SXq+H5BDXV34qGF A1jumyqQ3gr+ohS41JrhXUc/KkdiWUlogfFE15uq9zk4Fg8Kj4ROQVWicC6K+95bIptJ g/lWcdPiIdkkzqLtZdDFYpmlVE2hIvz1sgiiooPTTAxVGj4vFRsMr1Xe7o0TCxnMMCaY u+rPz9sdYkaHF7uKmLRwvnw/hGGuZls53u4iEr1/8zXIcvMvXoB7Ug0IlwXY6pRDluqA SgDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mLYaAzuY; 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 u8-20020a170902e80800b001cc76bea514si846209plg.442.2023.11.23.01.42.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:42:43 -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=mLYaAzuY; 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 5C0BD8082CDA; Thu, 23 Nov 2023 01:42:39 -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 S235292AbjKWJmW (ORCPT + 99 others); Thu, 23 Nov 2023 04:42:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234394AbjKWJlF (ORCPT ); Thu, 23 Nov 2023 04:41:05 -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 916B2D7F; Thu, 23 Nov 2023 01:41:02 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9fcfd2a069aso85735666b.1; Thu, 23 Nov 2023 01:41:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700732461; x=1701337261; 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=lHDf4R0aqtCOREGjSJoba2ofOslBc7XL2VIsmReJ8Yw=; b=mLYaAzuY0hlXq0Z/dJENUjyRIYQPMILDifjY2bcd0JSOQ1bU0MD41cMHibIuo4uWE4 IoYny+Nbe5NGGFQAe6mAa5GjgptMhV0lNS09wvJWnfZvgIVRtOUxTWX3dlJdfR35+lpF hQQ008hkRWfu+pjLsOvYFD90vnHV9ZSB24NZrF8uNMpmVaoQoH3s1irr1qMOYRCAR8T8 ouzbLk2bbARG/+RjtOIK6rPGmNCDEorbN+jNiLvYh0xp/gIuXn6FJcwsvYxlwY01UqoQ lwCNqWhMtno5KdrIhhb5E51AIDTbAYlJYigQeeBkDehGOwFgTQcNuyuk6GRbwEr16Mc7 sZpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700732461; x=1701337261; 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=lHDf4R0aqtCOREGjSJoba2ofOslBc7XL2VIsmReJ8Yw=; b=s/6Kb2dbHcZrGYsOTOxkeK5zn/mmkbDLawWE6rqdqF7stfK92qPKMhUWIMJ8zACMjO Zu/CxM06Jbp8Vg4TD6FMwxQyg7Mjc0l/wHbdLf4s3Owt1OqZurbNfPKlLdLg/Ds2KSEJ w9LBkCAicTOFKDAsQZ1klxM4XDJCouf6MDJKVZ1MdlKfFH/y2rY/3UHjlOCOa41gj3ke fBiWye1F7POTrxKn/Hryyj9tsqjDJpm4+CBT/kpVR5xTCNR2ykvgCBCaL3PIJ6vGXCva XPaG7INNELOcm/6KLy3NggheZsdXzgA3E9EVL61RfdzQEmZv1pZHhhzRLH0AWN1k/Ddi NTyQ== X-Gm-Message-State: AOJu0Yxt9W5sk6d6RDaWSPZR/3S8thuH0L7BdNduPH8q0QBaH528aLl0 zuAU8PfQQ6yZbyhYgfZ9ASo= X-Received: by 2002:a17:907:2915:b0:9c3:1d7e:f5b5 with SMTP id eq21-20020a170907291500b009c31d7ef5b5mr2676823ejc.20.1700732460355; Thu, 23 Nov 2023 01:41:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:40:59 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Patrik Jakobsson Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 18/20] drivers/gpu/drm/gma500: remove I2C_CLASS_DDC support Date: Thu, 23 Nov 2023 10:40:38 +0100 Message-ID: <20231123094040.592-19-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:39 -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/gma500/cdv_intel_dp.c | 1 - drivers/gpu/drm/gma500/intel_gmbus.c | 1 - drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c | 1 - drivers/gpu/drm/gma500/psb_intel_sdvo.c | 1 - 4 files changed, 4 deletions(-) diff --git a/drivers/gpu/drm/gma500/cdv_intel_dp.c b/drivers/gpu/drm/gma500/cdv_intel_dp.c index 8992a9507..dd1eb7e98 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_dp.c +++ b/drivers/gpu/drm/gma500/cdv_intel_dp.c @@ -855,7 +855,6 @@ cdv_intel_dp_i2c_init(struct gma_connector *connector, memset(&intel_dp->adapter, '\0', sizeof (intel_dp->adapter)); intel_dp->adapter.owner = THIS_MODULE; - intel_dp->adapter.class = I2C_CLASS_DDC; strncpy (intel_dp->adapter.name, name, sizeof(intel_dp->adapter.name) - 1); intel_dp->adapter.name[sizeof(intel_dp->adapter.name) - 1] = '\0'; intel_dp->adapter.algo_data = &intel_dp->algo; diff --git a/drivers/gpu/drm/gma500/intel_gmbus.c b/drivers/gpu/drm/gma500/intel_gmbus.c index 09cedabf4..aa4550985 100644 --- a/drivers/gpu/drm/gma500/intel_gmbus.c +++ b/drivers/gpu/drm/gma500/intel_gmbus.c @@ -411,7 +411,6 @@ int gma_intel_setup_gmbus(struct drm_device *dev) struct intel_gmbus *bus = &dev_priv->gmbus[i]; bus->adapter.owner = THIS_MODULE; - bus->adapter.class = I2C_CLASS_DDC; snprintf(bus->adapter.name, sizeof(bus->adapter.name), "gma500 gmbus %s", diff --git a/drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c b/drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c index fc9a34ed5..6daa6669e 100644 --- a/drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c +++ b/drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c @@ -168,7 +168,6 @@ static struct i2c_adapter oaktrail_hdmi_i2c_adapter = { .name = "oaktrail_hdmi_i2c", .nr = 3, .owner = THIS_MODULE, - .class = I2C_CLASS_DDC, .algo = &oaktrail_hdmi_i2c_algorithm, }; diff --git a/drivers/gpu/drm/gma500/psb_intel_sdvo.c b/drivers/gpu/drm/gma500/psb_intel_sdvo.c index d6fd5d726..e4f914dec 100644 --- a/drivers/gpu/drm/gma500/psb_intel_sdvo.c +++ b/drivers/gpu/drm/gma500/psb_intel_sdvo.c @@ -2426,7 +2426,6 @@ psb_intel_sdvo_init_ddc_proxy(struct psb_intel_sdvo *sdvo, struct drm_device *dev) { sdvo->ddc.owner = THIS_MODULE; - sdvo->ddc.class = I2C_CLASS_DDC; snprintf(sdvo->ddc.name, I2C_NAME_SIZE, "SDVO DDC proxy"); sdvo->ddc.dev.parent = dev->dev; sdvo->ddc.algo_data = sdvo;