Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2130035rwp; Fri, 14 Jul 2023 00:54:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlG0MlX9mOP6E6ZYfSmDYynL5bfTW3Zk/AwWRhd3obUFLwbPtwwQp5u2UkLYMgjiSArIHSSi X-Received: by 2002:a05:6512:68a:b0:4fb:89ac:a967 with SMTP id t10-20020a056512068a00b004fb89aca967mr3995106lfe.56.1689321273579; Fri, 14 Jul 2023 00:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689321273; cv=none; d=google.com; s=arc-20160816; b=BQBtgHrP3yaET8a0eQ/SYkT7338Z7SUfMoC1kfxVnZvc3IL5JXQQixwkECghBTRr8H JvyWh77QF2/bqVz6P2uIPs2lBb+j8aM2YvMUWcKFdBcwH/0OMWSTS3iEi3fdp1PzTuLU l4p9Ia9jVdTI2tbPGOaKNCUIvn2mA6csoZ1+UesLzLU5q+bXKGWo9ovz0Xxra7+FNxKq LCgKLPLjKfxT7BhBzGqsiXP0ZzzJSI03PikdXB/VvcRy3BOMJ7TrT4iEDL73ebrEViN2 tEzgkZCZqmMud6EIXHI1BYcrQI1UIvsO6RPdjPZHw81PKUX3Mwgo2V7jr/XV6ReMHrvN x1zw== 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=HF0ntTEfTFR2eIXkYuLTyCKB+tFcMggnqDzzMkFmIGA=; fh=3yNFpFW59vsXBqjjOQQ9Y6FkgLMRU9vk1eNRMOwCv6U=; b=FrhDlIAATAbfOOHQ1yRbWhTUslBONbWUtB8ndMCfu81hnrzuQeCJb+1aePtzpihTEa ui302odGDp0uAlQ6ps2664Wys4X9I5hnK8KYA8jspGpwuAM2Oymm04XhTVJdkFOryx5W acEZbH2nngEpcYgqFZHuu3BCQkukB5KV/r2KITJImD62nvRQq0ecpE2Eut/n+v4lQzWR Du7HExdScsc+To4U4X8wsichAm2lK2mOGKhYoBV5Vkulp3Qhlm7I5wM0ZezQsr752Tae pYFJP79aIPhi/jgf6OdE/wUX/FA0WIlwTASlYgoNHWNiPrqgVtXpFUJOvskF7LJEyZYk sJAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=k3R9CMEE; 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 h8-20020aa7c608000000b0051e266abe33si8867800edq.594.2023.07.14.00.54.04; Fri, 14 Jul 2023 00:54:33 -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=k3R9CMEE; 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 S235653AbjGNHwW (ORCPT + 99 others); Fri, 14 Jul 2023 03:52:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235540AbjGNHwG (ORCPT ); Fri, 14 Jul 2023 03:52:06 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF89530F6; Fri, 14 Jul 2023 00:52: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-out2.suse.de (Postfix) with ESMTPS id 0DFEC1FD88; Fri, 14 Jul 2023 07:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689321122; 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=HF0ntTEfTFR2eIXkYuLTyCKB+tFcMggnqDzzMkFmIGA=; b=k3R9CMEEVHHOW6sw9ur3sR3vWZf0Og+likYvH2sC1AM6JU5wsJZygcfpHHrJvUkw0PPuEe LgvVN2QbK/QTW/rm+rECHMijYMOLmHIJXR0f+TPw6An2AjXpS8DGK7kHPdyy8g2gNnL4Oi bv12NZmhahM0U2LPAyFZAcuOqRyY0Hs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689321122; 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=HF0ntTEfTFR2eIXkYuLTyCKB+tFcMggnqDzzMkFmIGA=; b=VfWUqWHI6r/BCLgjMns89AYGSompv65+9Uf/weig8DuUaCsOMPp5g0+/zLT8SEKo28BSXN Y5TW350q3fz2xBCg== 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 AC71513A15; Fri, 14 Jul 2023 07:52:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4O9MKaH+sGQCQwAAMHmgww (envelope-from ); Fri, 14 Jul 2023 07:52:01 +0000 From: Thomas Zimmermann To: deller@gmx.de, javierm@redhat.com Cc: linux-sh@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-geode@lists.infradead.org, linux-nvidia@lists.surfsouth.com, linux-hyperv@vger.kernel.org, linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, Thomas Zimmermann , Sam Ravnborg , Greg Kroah-Hartman , Sudip Mukherjee , Teddy Wang Subject: [PATCH v3 12/18] staging: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers Date: Fri, 14 Jul 2023 09:49:38 +0200 Message-ID: <20230714075155.5686-13-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230714075155.5686-1-tzimmermann@suse.de> References: <20230714075155.5686-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,URIBL_BLOCKED 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 The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix commit message (Miguel) Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Greg Kroah-Hartman Cc: Sudip Mukherjee Cc: Teddy Wang --- drivers/staging/fbtft/fbtft-core.c | 2 +- drivers/staging/sm750fb/sm750.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index 3a4abf3bae40..eac1d570f437 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -684,7 +684,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display, info->var.transp.offset = 0; info->var.transp.length = 0; - info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB; + info->flags = FBINFO_VIRTFB; par = info->par; par->info = info; diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index c260f73cf570..79bcd5bd4938 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -807,7 +807,6 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index) info->screen_base = crtc->v_screen; pr_debug("screen_base vaddr = %p\n", info->screen_base); info->screen_size = line_length * var->yres_virtual; - info->flags = FBINFO_FLAG_DEFAULT | 0; /* set info->fix */ fix->type = FB_TYPE_PACKED_PIXELS; -- 2.41.0