Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1590155rdb; Sun, 19 Nov 2023 02:16:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJJ4zvYx7w25aBzCWn1ocjRSaedXY590r0XGbC3A6+bbzZL1kK+hQ2dvW/RenwTyFN3ElB X-Received: by 2002:a05:6808:1494:b0:3b2:e469:903f with SMTP id e20-20020a056808149400b003b2e469903fmr7284079oiw.15.1700389006853; Sun, 19 Nov 2023 02:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700389006; cv=none; d=google.com; s=arc-20160816; b=vBki1DoHH7zqDlOfSItTm0f216ys2C+RFENh1YJHuYROWfwgfsa7r/9xwgukzbtwBa ZOOmAQrKT5Nb3WWZAYRcyKFgbWYJfN7cZOEX3y1+TXjNbWrNXo25LyOgZ9ErNJuvwSaE FXoggZgRV2jvld2XwyWkBRRDxpHLmJHu991Al+VT1rAyVikygIU++buMwgrfrcHBF+se aeWhi3rpHVTt81LVBlxx+AFgQdZ7O7HFqW+qypX2wPYfRTnNet7iVTfG4cnHg67uf38l 8PZsKx7/DNitTL83lTGkJAyVb5Fb8dwUmagPVRV7PJUA6hKg+KHGmPSuhjzLT82tZYfi f3jw== 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=iwY3dw5n8Qn4ucno1MuBuADAhIYe/cj92x0CcIZXqhc=; fh=ryPNvZKJsEZ0dWbmhAHlenAj0T5SiSWfEP9XcOdaxak=; b=yBXHTYHf3Z5NtF8cFXY214DDA0uKaFDO+b+RbgpWhpNxstUz4rgcflXztP4seRbI5m EZtX4iJ3oiWJGo6dGfDy1MfohokYDNHRVOFo66aZRS6x+00JcBQnMNVRQvPZ9+N1f2h5 k5+NdXOGWVGArwPkDm1DkPpAfJl9epxr8iKwbDScThb3lpdYJY/Xvd6AOAIeFqjprRY+ hnY7braUqIcm+8Uh+++a5rkPRn9vFcwiCpVqPzal40ypCBfGOvKWARwSP3jutDYymk0k 10xKKgm6b9cvJSSUNT3BFofUvG4HoWhMbqNkHfsCMnoGN/3munWQtx49Df6IjUXz3uLP rj1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UNq2T+6N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t14-20020a65608e000000b005bdf59618dcsi5865520pgu.641.2023.11.19.02.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UNq2T+6N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 B6FD5805741A; Sun, 19 Nov 2023 02:16:38 -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 S231133AbjKSKPs (ORCPT + 99 others); Sun, 19 Nov 2023 05:15:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231209AbjKSKPY (ORCPT ); Sun, 19 Nov 2023 05:15:24 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B494D5F; Sun, 19 Nov 2023 02:15:04 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9d216597f64so461957566b.3; Sun, 19 Nov 2023 02:15:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700388903; x=1700993703; 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=iwY3dw5n8Qn4ucno1MuBuADAhIYe/cj92x0CcIZXqhc=; b=UNq2T+6N22AEnS4HLrQgLByl+B2Ei0pp3qOLSXxh8Rslie/hghh/PYEX9CJxeETBoW e1KuVBNw52Pyowrpvdwobh98UsTQfMscErY2VMR4E2NUdRmQNOHj6TeEmaqsOlN2ou+w 8bAgKzP3uM/3XmCMsTNgLsj2Uge5LT8tuRMu636VTXRyYmvDsqLoqXPIeIYAT4qySXMu /dIykQ7dX58nkN4b2yYV5Jv0TGfo/MPGclA0sG1Ajnz3hcmLXXBY+DZvqwpOQ+GzIQVr FsrrWql3IlHUPH7TSd+EEtd77ZxHKMEDV0C+J6PO6FHUnvPTkrb3/WbqG5PmXbzedggI JQuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700388903; x=1700993703; 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=iwY3dw5n8Qn4ucno1MuBuADAhIYe/cj92x0CcIZXqhc=; b=XHZ2LMVFIJSqsXf98CAYGuW2KbJVUUwd/rlkX12mdTr1JuZYyABYBT+mKJ7H6vg/qT 6i/xLvDHclxQjX+9PG9xt+XgQvcOChd7oRVFOsA5LlOcx1IdltdL2NA0yT5xIrIAJPb9 HTrCcZoJm/T4feaY/8XpyIJ+Ja41CJqJZWMgT12gr/Y0up+3m6eng1njpDQcbyLYE/IE k5MduWr1sFdzIz/Do8fXUBqDF28Jaq5T5eenutw5Bskgr/R6sDXR3bKzHfO552QzvzAb T4tsibPMMCD9d5qaGOanY1t5fcaZ5agi13Exrs6IFH58BudEv3sDw2vf6PMSfMDq/4az Wt3g== X-Gm-Message-State: AOJu0YxaX/uTntIgqHiEV+oYa3cK8NrfFgApUoga94zKPQI4VdPbKECv baiw+MBIiGEpEhx5xbi+P/k= X-Received: by 2002:a17:907:1ca4:b0:9c7:5200:e4f4 with SMTP id nb36-20020a1709071ca400b009c75200e4f4mr4905232ejc.41.1700388903204; Sun, 19 Nov 2023 02:15:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:15:02 -0800 (PST) From: Heiner Kallweit To: Wolfram Sang , Jani Nikula Cc: linux-i2c@vger.kernel.org, Heiner Kallweit , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jani Nikula Subject: [PATCH v3 15/20] drivers/gpu/drm/i915/display: remove I2C_CLASS_DDC support Date: Sun, 19 Nov 2023 11:14:40 +0100 Message-ID: <20231119101445.4737-16-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 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 02:16: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: Jani Nikula Signed-off-by: Heiner Kallweit --- drivers/gpu/drm/i915/display/intel_gmbus.c | 1 - drivers/gpu/drm/i915/display/intel_sdvo.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_gmbus.c b/drivers/gpu/drm/i915/display/intel_gmbus.c index 40d7b6f3f..e9e4dcf34 100644 --- a/drivers/gpu/drm/i915/display/intel_gmbus.c +++ b/drivers/gpu/drm/i915/display/intel_gmbus.c @@ -899,7 +899,6 @@ int intel_gmbus_setup(struct drm_i915_private *i915) } bus->adapter.owner = THIS_MODULE; - bus->adapter.class = I2C_CLASS_DDC; snprintf(bus->adapter.name, sizeof(bus->adapter.name), "i915 gmbus %s", gmbus_pin->name); diff --git a/drivers/gpu/drm/i915/display/intel_sdvo.c b/drivers/gpu/drm/i915/display/intel_sdvo.c index a636f42ce..5e64d1baf 100644 --- a/drivers/gpu/drm/i915/display/intel_sdvo.c +++ b/drivers/gpu/drm/i915/display/intel_sdvo.c @@ -3311,7 +3311,6 @@ intel_sdvo_init_ddc_proxy(struct intel_sdvo_ddc *ddc, ddc->ddc_bus = ddc_bus; ddc->ddc.owner = THIS_MODULE; - ddc->ddc.class = I2C_CLASS_DDC; snprintf(ddc->ddc.name, I2C_NAME_SIZE, "SDVO %c DDC%d", port_name(sdvo->base.port), ddc_bus); ddc->ddc.dev.parent = &pdev->dev;