Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1102550rwp; Thu, 13 Jul 2023 06:15:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlGU/SAo80rQ9atq/35+fTisXUVmPSGpWBAb1dmBmZ8zw8D9t3QaFXCFJ18O7bDqstqsOhyg X-Received: by 2002:a17:906:6a1e:b0:973:d1ce:dbe8 with SMTP id qw30-20020a1709066a1e00b00973d1cedbe8mr1694027ejc.46.1689254135408; Thu, 13 Jul 2023 06:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689254135; cv=none; d=google.com; s=arc-20160816; b=ydhIXvf0ZZzObLYvGbJWkm/tHsY2/X+nUNPWRig1W8h7RVHmLg8pWg4ZVfWWUdh7KJ rnzo984McHboaFN6g2CPvvxVjBn/1BG46o715Sjp84cghhJ8rq3WPJ+3QQ5I1Dm3kojt 7UE5g495Uu0kN71NU8wVtchM9rOacIJMixaWiXOon9/Dl0eObJlB68V+0I4Z5JFweGCF mPjyPOje9L8o/Z+6eQqmP4AJMkQg+jee+G4u+ixHgxNxAW8iYEHfUsFuTUUGJQ/GTf0g 31Ci61hXw+AOF5hg81c6DWh1hbGflNJBgLZrUv+xtCyRfCG5ASXMZx/0QbE3ggR+F4TK up7Q== 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=xL43EBO5xnFODw7DI91w3TTT+ZhOge9QgOFwJtZBLCM=; fh=cHSufJdRk/UZyDQfK+vWpnhRqUubR8lqqTDyOLp39eE=; b=pTie2Hy0550dHVPJ3t0TpFFgT/kVqLSK4rnvfuhPIJA8zu19+uFo1aepM5P2U5RZzZ jSE+0FIEiu8hGBBy34Ji7I9Nv/vNInakMKesz72KhYs14V22o0DEJOa8Noclj/CCw8g/ uoIhRrgRV6DTvIaLt+cLd/NObpVrcock9F3YwKaDpxyMeO2JPUIQO3ygy7+wuaJNguup EssQF/67ju1Qeg0mcSP42Rva17aeGXMILkOvf0c3lURE/9Q6PSZZBJLjrqIhmLyzZIIx 9nwRTl6Rex3E1SVztLyqNgRsp+R7VS3V7kMsrHGIYaO0ThdWylstOjbvXbG/uoTR4eZv v93w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=oBNzVQVe; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=FVvdD1Uc; 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 ha14-20020a170906a88e00b00992b6f26c0esi7432909ejb.672.2023.07.13.06.15.10; Thu, 13 Jul 2023 06:15:35 -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=oBNzVQVe; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=FVvdD1Uc; 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 S235136AbjGMNFC (ORCPT + 99 others); Thu, 13 Jul 2023 09:05:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234274AbjGMNDp (ORCPT ); Thu, 13 Jul 2023 09:03:45 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 828731989; Thu, 13 Jul 2023 06:03:44 -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 01F6722189; Thu, 13 Jul 2023 13:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689253423; 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=xL43EBO5xnFODw7DI91w3TTT+ZhOge9QgOFwJtZBLCM=; b=oBNzVQVeVo79gjHPcjz8tUlrfjKcGZsv5lHU3GIJknuDIBmAwraE8yp+ixorz1/GViJ2tP NjnnO3GblqExsjo8cLdJ1Pr6Uf5aHK4hd2IXaS5snY0KnodZycJrYxU/yDOk9C3naqQ3aF yACyzoDOSZEr/pFHx51qaizsJQkyabo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689253423; 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=xL43EBO5xnFODw7DI91w3TTT+ZhOge9QgOFwJtZBLCM=; b=FVvdD1UchXuGU1Fl1W+GYEO5uTaH3aMNN+jnY1lfsnbesKYfg0Nj3+e4a9aNDu8G65OOfG HyUuSyV45r06iCDg== 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 938D913A94; Thu, 13 Jul 2023 13:03:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2GjnIi72r2TVPgAAMHmgww (envelope-from ); Thu, 13 Jul 2023 13:03:42 +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 , Russell King Subject: [PATCH v2 03/18] fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers Date: Thu, 13 Jul 2023 14:58:23 +0200 Message-ID: <20230713130338.31086-4-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230713130338.31086-1-tzimmermann@suse.de> References: <20230713130338.31086-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by kzalloc(). 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: Helge Deller Cc: Russell King --- drivers/video/fbdev/controlfb.c | 2 +- drivers/video/fbdev/cyber2000fb.c | 2 +- drivers/video/fbdev/valkyriefb.c | 1 - drivers/video/fbdev/vermilion/vermilion.c | 2 +- drivers/video/fbdev/vt8500lcdfb.c | 3 +-- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/video/fbdev/controlfb.c b/drivers/video/fbdev/controlfb.c index 82eeb139c4eb..717134c141ff 100644 --- a/drivers/video/fbdev/controlfb.c +++ b/drivers/video/fbdev/controlfb.c @@ -775,7 +775,7 @@ static void __init control_init_info(struct fb_info *info, struct fb_info_contro info->par = &p->par; info->fbops = &controlfb_ops; info->pseudo_palette = p->pseudo_palette; - info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; + info->flags = FBINFO_HWACCEL_YPAN; info->screen_base = p->frame_buffer + CTRLFB_OFF; fb_alloc_cmap(&info->cmap, 256, 0); diff --git a/drivers/video/fbdev/cyber2000fb.c b/drivers/video/fbdev/cyber2000fb.c index 38c0a6866d76..98ea56a9abf1 100644 --- a/drivers/video/fbdev/cyber2000fb.c +++ b/drivers/video/fbdev/cyber2000fb.c @@ -1459,7 +1459,7 @@ static struct cfb_info *cyberpro_alloc_fb_info(unsigned int id, char *name) cfb->fb.var.accel_flags = FB_ACCELF_TEXT; cfb->fb.fbops = &cyber2000fb_ops; - cfb->fb.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; + cfb->fb.flags = FBINFO_HWACCEL_YPAN; cfb->fb.pseudo_palette = cfb->pseudo_palette; spin_lock_init(&cfb->reg_b0_lock); diff --git a/drivers/video/fbdev/valkyriefb.c b/drivers/video/fbdev/valkyriefb.c index b166b7cfe0e5..fd4488777032 100644 --- a/drivers/video/fbdev/valkyriefb.c +++ b/drivers/video/fbdev/valkyriefb.c @@ -535,7 +535,6 @@ static int __init valkyrie_init_info(struct fb_info *info, { info->fbops = &valkyriefb_ops; info->screen_base = p->frame_buffer + 0x1000; - info->flags = FBINFO_DEFAULT; info->pseudo_palette = p->pseudo_palette; info->par = &p->par; return fb_alloc_cmap(&info->cmap, 256, 0); diff --git a/drivers/video/fbdev/vermilion/vermilion.c b/drivers/video/fbdev/vermilion/vermilion.c index 32e74e02a02f..71584c775efd 100644 --- a/drivers/video/fbdev/vermilion/vermilion.c +++ b/drivers/video/fbdev/vermilion/vermilion.c @@ -477,7 +477,7 @@ static int vml_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) } info = &vinfo->info; - info->flags = FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK; + info->flags = FBINFO_PARTIAL_PAN_OK; err = vmlfb_enable_mmio(par); if (err) diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c index 31d4e85b220c..42d39a9d5130 100644 --- a/drivers/video/fbdev/vt8500lcdfb.c +++ b/drivers/video/fbdev/vt8500lcdfb.c @@ -300,8 +300,7 @@ static int vt8500lcd_probe(struct platform_device *pdev) fbi->fb.var.vmode = FB_VMODE_NONINTERLACED; fbi->fb.fbops = &vt8500lcd_ops; - fbi->fb.flags = FBINFO_DEFAULT - | FBINFO_HWACCEL_COPYAREA + fbi->fb.flags = FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_YPAN | FBINFO_VIRTFB -- 2.41.0