Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20653317rwd; Thu, 29 Jun 2023 05:27:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Oq7yIIsoeTqwz9DkafTrE7ZrYnmH72xHaxJ0foHssVMjNxYOeCeK3t+gfUhZAF4Lui4XC X-Received: by 2002:a05:6870:1841:b0:17a:c7ff:ccf5 with SMTP id u1-20020a056870184100b0017ac7ffccf5mr34440954oaf.32.1688041640991; Thu, 29 Jun 2023 05:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688041640; cv=none; d=google.com; s=arc-20160816; b=PPBsTgVwhhD2utNXkszxEnqwa+cJMeSS0AcqfvZ5RrHqo+J7qwim5S/GOHoi5J0N2o Yjdb6D/tF1VwTg7r0CAUaRUfU9/c3TMgIms5jwF6vz6IZ7gCeztc+T0NjXYLkVkkhDoN HFF6TJyvlI7lEoIIhGQ/TPWhy3S/+RaahEQcmCahYbwXyhTOyrhtzq6k83vK60kMPlVk MXxFnGStQzkaDPEsF9ZUTtbw9Mjci3vuW2kRFFuuLNsQpRrxtBwUizbQqOGs7VCsHp0r kmxr3QDI2XswVaCtIoZ3QHhkKJKvePAL/BmZELpDJ7lY0gP9AlDLbiWB/YbJw4KOnB4P ViRQ== 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=IXGU5X8lHgcy0xSrc3ZVVAstecW58Mhx3eVBaUQt3EA=; fh=WRG1J148SZwGT2Abgugp58L7jP8o6vQads3Jl1rt2eM=; b=ygMJRQ67nUtJO3UH4xyl0+Q/NrC53g7YcjnpkEXY2/X07ttkKFEBha229rn+wFSkHF 8Sqo57zM4A7PRJRsoNwv3DPzs+X/kFmEQcVVklEjmzjo5+4il374tu3LOQlkynrGwtSx Nn85FwhtuXz7BvVS2EtzPOhOlcFFPS9bdNz55eB3svxt22bTwXjYlCAPwcT8DSiV6h57 FX0wRdeziML7WlNNyNJ34+CFGemZul9xHIMQR4k3wQy0OJhV/P6vbGpWDLyC8XNQBERs eluDPM71/sgzo/pta/GloYXIgDOY5NW8wVA6sS6HqItK7scsn7PY9x3ChNCdiEF+ZlnG 4Ibg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LkHGO7ba; dkim=neutral (no key) header.i=@suse.de header.b="5mRgVk1/"; 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 g1-20020a631101000000b005537a86841fsi10662476pgl.243.2023.06.29.05.27.08; Thu, 29 Jun 2023 05:27:20 -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=LkHGO7ba; dkim=neutral (no key) header.i=@suse.de header.b="5mRgVk1/"; 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 S231622AbjF2MUN (ORCPT + 99 others); Thu, 29 Jun 2023 08:20:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232097AbjF2MT6 (ORCPT ); Thu, 29 Jun 2023 08:19:58 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBFE23583; Thu, 29 Jun 2023 05:19:57 -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 4BAC6216DC; Thu, 29 Jun 2023 12:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688041196; 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=IXGU5X8lHgcy0xSrc3ZVVAstecW58Mhx3eVBaUQt3EA=; b=LkHGO7baJX3zJX0cf+a+c/FoUp4pImvT9g1shyK677YQqnqHTwkq2/nbPfpIMVxGT5xDkj aT1pTu4l3b7vpn/6c2VUCblTNZr1fAjD/lJ0StGaPRg75StQdS4Z+R+XnN2JzWnH/E34VU zK/QygQuma782ceDLn96pVDkn5oZtOU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688041196; 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=IXGU5X8lHgcy0xSrc3ZVVAstecW58Mhx3eVBaUQt3EA=; b=5mRgVk1/pVfSDoygZItWVKC6R0IzmCwK6ZL98BBiHU3NrlL4mP9k6A6PayShKVnBSPBC2x 88su8LwJ20TmyWBQ== 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 CD9EE13905; Thu, 29 Jun 2023 12:19:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CAVJMet2nWRlVAAAMHmgww (envelope-from ); Thu, 29 Jun 2023 12:19:55 +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 , Sudip Mukherjee , Teddy Wang Subject: [PATCH 02/12] fbdev/sm712fb: Do not include Date: Thu, 29 Jun 2023 13:45:41 +0200 Message-ID: <20230629121952.10559-3-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 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 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 b7ad3c644e138..f929091da4e77 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