Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1590234rdb; Sun, 19 Nov 2023 02:17:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+QrbaAfRwluftl8ooP8vLNPTgeopIfzf8daMaUa9ceiEgCvKzshx7UEAwGrNE5zlJIWEy X-Received: by 2002:a05:6a20:7da0:b0:187:e4a6:10a with SMTP id v32-20020a056a207da000b00187e4a6010amr3140985pzj.53.1700389020098; Sun, 19 Nov 2023 02:17:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700389020; cv=none; d=google.com; s=arc-20160816; b=O+CnvmqdA+cQNJMN1ljW6dJHqQhpB2tAvZ/jk/6HCL/FpBKKNZHSTxKucJZQMHY70V YHHtOUEaaOqh6T5DVEUXpCaLk6rrKGUpIP6sf/WrmnhggtPS7Uga38KMxFBRjiq3NK6l pD7JEV7l/W7W6MQUWHeQY5cExzttlfc59iDiulcpbu/mAmuJnHZOVCJ7FZ/GtT//Ci0x 6V15C1p1iVgGzKmpiTINY6Sul2GvFYLUv8Zbu/pClPrusC8wQ70emoMuBKnGhEyEn8hO FaH6cKcQ2fDzGkhuZzfS2U/PFx2Ayzu4L0dP0KrNCwodc9rSRXXr0U68RSkYYAceQdp3 GGQA== 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=mvYv7yv0Rz2qXj3RF4iM+eVeFbHCrgQ2kQmEmocPEPY=; fh=Bqg2HjXGkG68T4u5eOHUmMzI/8QfdaEHmj3gRBrO8Sc=; b=KtwJtV2hRtoncXdQ88/3cTPOIiIoBtPZGeO6C9l38REFcflAIWtF3i2MI4mUsZUoaA v2rhr1va2NuEpf2M3X5nIEcdpL4AdHkLAlz/3jdNf4rrKI40j6pBvdkN4cOBLWNDDJDY Xqotqyzxpuo0RHnuflIeS/5k4ogvqjJUAUb7mVrLxz70WF8z1SDx2T98a0vI6TRPg3oF okTb79odK7KN18+mFUc8RGlPpwOMO4btUqTuRkGasvG9Qc0xWlgqfKk7sxAy36bHudqY T4b1FguPi1aqg6lTEDeQ2JHrFQhsMJ2t4TOiu2QGTXvGsYngogUkrWmsWPUwiQir2QxS N4Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=egTNSWyL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y9-20020a17090322c900b001cf5d4f91d8si205692plg.333.2023.11.19.02.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:17:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=egTNSWyL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 6B71F808EEC9; Sun, 19 Nov 2023 02:16:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231422AbjKSKPy (ORCPT + 99 others); Sun, 19 Nov 2023 05:15:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231295AbjKSKPj (ORCPT ); Sun, 19 Nov 2023 05:15:39 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF60410C9; Sun, 19 Nov 2023 02:15:07 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-507bd644a96so4793010e87.3; Sun, 19 Nov 2023 02:15:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700388906; x=1700993706; 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=mvYv7yv0Rz2qXj3RF4iM+eVeFbHCrgQ2kQmEmocPEPY=; b=egTNSWyLqPtTNyCJlMD4oe0+OLdayVFHdLmSrt3idHu0keDv1TdAcaYhodc4aDnaUQ OlUPDpXyDj1eaz0vTOHE8OKAkhYZP9nQpEZJ4W43WMcZF8Z8ZzKI7uZkOfW51JK14gmv i52D1Vkk9pJzKczN4czxzPkTS1FsuX1jUCwaa5dce/wDfHkirBuXIltVgZD7w0yjoX/t O2E9GfrpDM/g5oupdy5xfL1tsNLEEr+gHoEEmr/RYOb7dJjWABkdzif8F1g+HJQOe4/3 1dXjdvPJbGKm8u2OTJI64qs+dnzCbX7hZz1Q+d7TQw6+VjBvxmYynar9g5vCE1DYuYhH tgsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700388906; x=1700993706; 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=mvYv7yv0Rz2qXj3RF4iM+eVeFbHCrgQ2kQmEmocPEPY=; b=uYWmghiQE7XHXTfXwtYGoCySMX8NGOGC7zU5Hu24ds1QD/5S2rgvfARpzZp6dYKFuf 7tUCvNh7zZgm5/s5SNS7NIa5U2WSn57AZB9JAevt/cUKfd3mHbMTw/wkgBHzjN9M13Qw 81Js0fCxM0r77SdDW06MVmzG0djXMbMwYqk64UOK6Hh3b99P1p4WAVFAHexga0PEmKSz M3IVwF3ceYeqYVwRqSh6bZ1T4kQB/QaerTibpAmInTncIe+Gk9afMCbLxn16kjCqLMn0 OGQaYkiFLb/i55MuepbQR+LBK5g3HdxvLtBZJjrLBshV7DTlaQRSmwSd355vBjYtrYmV l6rw== X-Gm-Message-State: AOJu0YxFI4mwo513PH/VCuz5g9y/Pm7h4B9OHqGp5oLaMy4xjur27PCB leeE9wWaRCMMKYdS8p+gxUs= X-Received: by 2002:a05:6512:615:b0:507:9608:4a87 with SMTP id b21-20020a056512061500b0050796084a87mr2690869lfe.56.1700388905907; Sun, 19 Nov 2023 02:15:05 -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 p20-20020a17090628d400b009928b4e3b9fsm2743581ejd.114.2023.11.19.02.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:15:05 -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 v3 18/20] drivers/gpu/drm/gma500: remove I2C_CLASS_DDC support Date: Sun, 19 Nov 2023 11:14:43 +0100 Message-ID: <20231119101445.4737-19-hkallweit1@gmail.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231119101445.4737-1-hkallweit1@gmail.com> References: <20231119101445.4737-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 fry.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 (fry.vger.email [0.0.0.0]); Sun, 19 Nov 2023 02:16:54 -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/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;