Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30292204rwd; Thu, 6 Jul 2023 03:57:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlHebRWLEIdixLY+1xFO2hGW+R/hB/W+WY88Edep/ujedw4WbceX1aoZGxlaWruuFVdYn3Bz X-Received: by 2002:a05:6a20:a10b:b0:12d:d40c:65ac with SMTP id q11-20020a056a20a10b00b0012dd40c65acmr1251854pzk.38.1688641029938; Thu, 06 Jul 2023 03:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688641029; cv=none; d=google.com; s=arc-20160816; b=yHiSNZ9XkFA8cajSJs5jTJtt2ljiIIGxDtE23ARWY+DebwfZmqs2amV23nPMIsQO2T MUhDj4+h9dwo4fo7xDTKyRVcX/0031w1SmgKxA4epyXEB5Rh7gBR458tLKVQZ04LzIjB i3vknkwpICXYoU5RJ8pQjEzozhvZbMDNnkvp78nx5vNKTFwnYtLl6q7KE4WQqZEyHofx XJCymU0cSeu60cOaOPqXaTQzhk8oisFNqRFKZVx4Ichv2d0eRxV4ZzqiZvhRIh9Fklz0 aWhAdo/Eo6/z4MDPIil83Brf3jw2SG8HLJc3c80I9X5p2j9vXHnzqIRvjyOPEh5oqkD6 +hpg== 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=0yN2iGJzPRI5qeaMkkVQG1/mfO37rIiV1XHtVYwXdmk=; fh=2oZp8oq1AA98O6FX644KUA7XQ079bZFIBh7uzcA+jEU=; b=ozSaDZBuX+1EoQXOk3aNiOJJ4aHYhS+mKY4rIe2N59agCW0KTDikT6OMNHjILNZsPS H8BLmrl4JlsEJcrvuYLEXky4gLepv2D+kEl2//iPcMc/VaRz2xn0kNyOsmPcIr3El/HG AKCoMMSlASAjyxiZ41YxAeSRSt9oOPQbDS2Pp1KGSBvZdfD699/+zssZuF6cau5mzSh+ 3uVUZvzkgrQ59Y29xeY2qSx3YZO6+yTvyY+Hff2apvQZpIqu6zCfvtu/UhJ59rLKrmIU jvBCzLhAmY9lbYz5BAzqLYIUibFcPBTV1sACnupFJ21Mm+Fckt8okWh8yd6r/3FMotTA ylyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QsKVTUAZ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 n13-20020a170902e54d00b001b89ba65f3dsi1194617plf.193.2023.07.06.03.56.55; Thu, 06 Jul 2023 03:57:09 -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=QsKVTUAZ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S232029AbjGFKtF (ORCPT + 99 others); Thu, 6 Jul 2023 06:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbjGFKs6 (ORCPT ); Thu, 6 Jul 2023 06:48:58 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFBD21BE5; Thu, 6 Jul 2023 03:48:56 -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-out2.suse.de (Postfix) with ESMTPS id 42017204E4; Thu, 6 Jul 2023 10:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688640535; 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=0yN2iGJzPRI5qeaMkkVQG1/mfO37rIiV1XHtVYwXdmk=; b=QsKVTUAZs9bZ1Zqds/Rr99SwmMWTBA7dJIpiJOcfOiVr9PaiDz9/gvJ8Xpd41hGSLu5A1L NkoTEDB5bnVHBN7YgwWnK7m/BqHfO0Dkj5wC/OE+oye5NVAseEzcVlgqlIBt4EKvhmLMqv jUP5NQDW4EoBc8dJA3cL2jjg1Eejf2I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688640535; 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=0yN2iGJzPRI5qeaMkkVQG1/mfO37rIiV1XHtVYwXdmk=; b=hCzA+TAkXJSjwQ5MsRnAI4urtMf8Rqw5taRcMcRV7jwZ5cNBr0JQtZwtD/nolJEXZiCfec 6V42HBVTJrjgp9CA== 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 00BA1138EE; Thu, 6 Jul 2023 10:48:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id KBntOhacpmSDAQAAMHmgww (envelope-from ); Thu, 06 Jul 2023 10:48:54 +0000 From: Thomas Zimmermann To: javierm@redhat.com, suijingfeng@loongson.cn, arnd@arndb.de Cc: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, dri-devel@lists.freedesktop.org, Thomas Zimmermann , Sudip Mukherjee , Teddy Wang , Helge Deller Subject: [PATCH v2 2/4] fbdev/sm712fb: Do not include Date: Thu, 6 Jul 2023 12:42:15 +0200 Message-ID: <20230706104852.27451-3-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706104852.27451-1-tzimmermann@suse.de> References: <20230706104852.27451-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 Sm712fb's dependency on is artificial in that it only uses struct screen_info for its internals. Replace the use of struct screen_info with a custom data structure and remove the include of . Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Cc: Sudip Mukherjee Cc: Teddy Wang Cc: Helge Deller --- drivers/video/fbdev/sm712fb.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c index b7ad3c644e13..f929091da4e7 100644 --- a/drivers/video/fbdev/sm712fb.c +++ b/drivers/video/fbdev/sm712fb.c @@ -27,12 +27,17 @@ #include #include #include -#include #include #include "sm712.h" +struct smtcfb_screen_info { + u16 lfb_width; + u16 lfb_height; + u16 lfb_depth; +}; + /* * Private structure */ @@ -829,7 +834,7 @@ static const struct modeinit vgamode[] = { }, }; -static struct screen_info smtc_scr_info; +static struct smtcfb_screen_info smtc_scr_info; static char *mode_option; -- 2.41.0