Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1614674rdb; Sun, 19 Nov 2023 03:31:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGamBzP5W6z0SdbRJzwkDGxypb7goyazvqr/sfG5BTTs+ppz4Dgu5JhuoKOV+BvTpKGg+m+ X-Received: by 2002:a05:6a21:999f:b0:189:fa8a:bcb with SMTP id ve31-20020a056a21999f00b00189fa8a0bcbmr3795196pzb.14.1700393489776; Sun, 19 Nov 2023 03:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700393489; cv=none; d=google.com; s=arc-20160816; b=QTffMoe0HO3FlroB+SIq5LCzHAV7P1O5g00eo3Tfas9lELNbuz6oJRhlkdED/wbxka +UE9q2I7vR42qzwesk2BT12ExH/60H9md/oLQQH84Ij7A/q1vPPST3PRJIhnZtf3FLgQ gkT9EZzovnVbmEhHrbenqwdO/5dtLVIqRNIH1nvE7vUQlcBJZBmTx9RLB7r9grDc5ljA flkxb9aCPiUmwH5yCZyAfHMUV6JoEaY6ks2u8d0g5kO31Z5mLf51vGobMd9tGl9WuBgr 0G1kxRZkAnK94CA6e3bGhxrqP2V/oHp3f28VGz48vSHOwtTqkJPoz6QWf6wQCWuKdQMy 04+g== 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=VLJBecgKgIimVT20gCHpTxmThhs+inZyQZgL9B0Hmuq20jsw7WrZ5yuxUFIqx7Ct6o koN84Cg1LQZwxlIAhz6P06vZsM+Euf5mqQZYnjSsT3DBa5Fb1qavaYCsDfMDRorfVuPN oHnyYFob/8Rg39t9WxFvxM5q35ecZe9IGXz/MO9KlCaYYh4QAuEqlViDuhE2NGRvPfyR PM83XoSBNv3kkHw0hSCdmZCZtwqjFg1b/xYWbzx5ywvAu/8r493Xl9FGhJP5mt/xqUKh 4AFUQ4CQYbt+9xtYq7EcpIihH+p69+nF8pAiH2zp7qviJhL8gpzBgAAKo7drth8UxT7h pkqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k6lcmgeR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w31-20020a63491f000000b005c219456791si4074386pga.322.2023.11.19.03.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:31:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k6lcmgeR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id D5391805DC0C; Sun, 19 Nov 2023 03:30:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231584AbjKSLaO (ORCPT + 99 others); Sun, 19 Nov 2023 06:30:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231451AbjKSL3n (ORCPT ); Sun, 19 Nov 2023 06:29:43 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D2D610FB; Sun, 19 Nov 2023 03:28:48 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9e623356e59so468896466b.0; Sun, 19 Nov 2023 03:28:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700393325; x=1700998125; 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=k6lcmgeREr5EjnCoxPGiWBPAcj/PIINnUtes0R5MvERFHzNfUiHG1By0ncxUzcENpt IX3/tjBRlbWzrNE/Oi3J7Tvsz4lBlCgJLwLXzKgxYsBuj1hx394Ky+mNT9z6CUVOEcvp VsNqtuYxvi9m+DpbzqSZoW0jnI9qdDNoGXXEGUJxLu6/z99KJ9XM8lxb4ls5RbwOa1lr cqBJ9S+xIGnOw4oO+A7gtL6uMAFUFxl4bMocdi1JCJmQM/wf9FEopMF1M93cO3lTpVSB xLQ4/uK/k1fjToyZsDHRqfhslhcvzCf7cMgtXjhc3vi9PyiBR1wnW1/XVLtWNqxHxbqj ZxZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700393325; x=1700998125; 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=VzfVlL5c/0mdIoL7LDTuMKDcaz9HNZr/KuiY7HpzOWHp2QBiNIsinnkGCcR/uFv55b VZdjmvSHTFOr5BHV+iaIWoLKkElc1mgWonvRuseqMEAA5Q8s3QDhOxYOK6c1MItoaOZz gF7rsypBjIHwW95OM0y1fIw9ODIqrvKmt2RC6WKKWJYMDnhDJUQezPLmgX0oUKWjmmHt e+0LL0bV64UC/tiqYZkiDE6lz+Bqeg732l8W4f9lVW/UPwPPNrFwGZNWU9sCy2f9Dz6S pOTXaTjX2yoI0W0ipGTzCHiZnsif6FHzG5DTswSErAA0T5irzySOO07sSxfr2Enl52D8 +u6Q== X-Gm-Message-State: AOJu0YyYye3OPeH/VIAMKJpPY6edDALJJs/wTrCmg7Wils0CgaJZ1HZS ot/YxuJMA/4aXlAkSzG7wgU= X-Received: by 2002:a17:907:9394:b0:9d0:2e6b:f47f with SMTP id cm20-20020a170907939400b009d02e6bf47fmr3500186ejc.36.1700393325493; Sun, 19 Nov 2023 03:28:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 03:28:45 -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 12:28:23 +0100 Message-ID: <20231119112826.5115-19-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 19 Nov 2023 03:30:52 -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;