Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20653580rwd; Thu, 29 Jun 2023 05:27:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61Onve5qLQvajO+YeSHpmbH0Nmxh/ORFa3ffr/qu6afGHi8sg4k88uW0Ld6yxckNETLn0k X-Received: by 2002:a17:902:db04:b0:1b8:c1f:fd2c with SMTP id m4-20020a170902db0400b001b80c1ffd2cmr10188644plx.33.1688041656166; Thu, 29 Jun 2023 05:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688041656; cv=none; d=google.com; s=arc-20160816; b=TNPhhJibrHcvsfrJvJHj1RlTGFTsxUhudKaUcgNnj12pCf2CoHiUq0x89qsgBf4qCU 88IGkF+UuZNC2Me/VHDsiZDj0pNOs2cVegwAb+yP48KnWDi/ejUg01JENHWNgj5LYGo1 l7SpxtPSuQNq8B1ZrqdOlT8wQlV9zvxVXXVS+OgyOO4Qd99z9er4hAYVlBR6auVUEMSq 4AeWWRfmkZqNgcm/ebd59JnTxf2smBgWY08wYQKWf9DsHydfsaj/fWr1+vb9FEgdMfHL W+fyyDZZNk4CT40a5nrZamHw18cH/CoVK/yW5KKcv1nedKtgctAwUjZ+0AI9RobPhuQM ClOg== 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:dkim-signature; bh=cKqppA9yoJZh0DiZwFUWalm8/3eVYO9+kOc1QaTDT1U=; fh=d0RMHbq3RRp5Y9yPvgOpsNp792wVSzWELFR9JPaTYe4=; b=F/u6/IgUxtv/KHq8fpqAAo2zKjjBh4eOZICXKA9IMssZzOkVzmIkly0/bkyqO2jELh NjBFUfit4XtU4BbgPULIDWIiDoC7N5oBV9/AIDQht+0srQhnNjJTHUA1/9pzFy7ce/q9 PnQjh700bhMoEFAgY0xesR9ocxJfoQ4sVRbO16iRl2ie2muTlX6mcoF0fBsQ0qu5OhG3 eSIiAhoVKgQjwVKGfBK5vys0V/4zVJPfWpjL6QYoH+JMnhCvIlAVapUkGlyN9GXWuBCk 7oAahaiXJeqbh+c6lghl/+rlV77LwO/iiYXIWTPIATalvMBvAG6ssZPZgHoPixSbKrIR OInQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GNmoPY2l; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a170902c3cd00b001ade5e66c39si1900407plj.114.2023.06.29.05.27.23; Thu, 29 Jun 2023 05:27:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GNmoPY2l; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232623AbjF2MUp (ORCPT + 99 others); Thu, 29 Jun 2023 08:20:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232284AbjF2MUF (ORCPT ); Thu, 29 Jun 2023 08:20:05 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656563588; Thu, 29 Jun 2023 05:20:03 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D03942186E; Thu, 29 Jun 2023 12:20:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688041201; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cKqppA9yoJZh0DiZwFUWalm8/3eVYO9+kOc1QaTDT1U=; b=GNmoPY2llgIzzKGALYCGCXujJoF8v3kumNCXFmuYjsIH7mTC1ESO1hzHUmvWxwEJjXVv+F ctb/570RZnfi7nsxRKlV4VzAM8j+Py9XRtnRv5wMp3UxCCXDlLGmUiRVqkWxBLYywKsYy5 FKlDGCyem5GQ2H/Qk6hWZdY37D1mLw0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688041201; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cKqppA9yoJZh0DiZwFUWalm8/3eVYO9+kOc1QaTDT1U=; b=zn2ycVN7bMs7MpMjurzeBDZvYIidBZ4ripZC2HXkAKRELmBxT7C4nSZT/5sVnb9LQGf2Kj pUzRMoQKnAC0euCQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 587A713A43; Thu, 29 Jun 2023 12:20:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WD2mFPF2nWRlVAAAMHmgww (envelope-from ); Thu, 29 Jun 2023 12:20:01 +0000 From: Thomas Zimmermann To: arnd@arndb.de, deller@gmx.de, daniel@ffwll.ch, airlied@gmail.com Cc: linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-hyperv@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-arch@vger.kernel.org, Thomas Zimmermann , Antonino Daplas , Maik Broemme , Randy Dunlap Subject: [PATCH 10/12] fbdev/core: Use fb_is_primary_device() in fb_firmware_edid() Date: Thu, 29 Jun 2023 13:45:49 +0200 Message-ID: <20230629121952.10559-11-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230629121952.10559-1-tzimmermann@suse.de> References: <20230629121952.10559-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Detect the primary VGA device with fb_is_primary_device() in the implementation of fb_firmware_edid(). Remove the existing code. Adapt the function to receive an instance of struct fb_info and update all callers. Signed-off-by: Thomas Zimmermann Cc: Daniel Vetter Cc: Helge Deller Cc: Antonino Daplas Cc: Maik Broemme Cc: Randy Dunlap --- drivers/video/fbdev/core/fbmon.c | 25 +++++++---------------- drivers/video/fbdev/i810/i810-i2c.c | 2 +- drivers/video/fbdev/intelfb/intelfbdrv.c | 2 +- drivers/video/fbdev/nvidia/nv_i2c.c | 2 +- drivers/video/fbdev/savage/savagefb-i2c.c | 2 +- include/linux/fb.h | 2 +- 6 files changed, 12 insertions(+), 23 deletions(-) diff --git a/drivers/video/fbdev/core/fbmon.c b/drivers/video/fbdev/core/fbmon.c index 79e5bfbdd34c2..35be4431f649a 100644 --- a/drivers/video/fbdev/core/fbmon.c +++ b/drivers/video/fbdev/core/fbmon.c @@ -28,7 +28,6 @@ */ #include #include -#include #include #include