Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35338913rwd; Mon, 10 Jul 2023 06:11:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGefpz54dmDp4EHOHjQ9cgdFgU1kR2N4qfJ2m+ACcLNbWm/f+yyvTvxy+sAdvoO2uuwi7wB X-Received: by 2002:a05:6a20:4416:b0:10b:bf2d:71bb with SMTP id ce22-20020a056a20441600b0010bbf2d71bbmr20174566pzb.27.1688994705476; Mon, 10 Jul 2023 06:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688994705; cv=none; d=google.com; s=arc-20160816; b=tro9hTxaU7ZNmtFm0NDAFgl118OCD/EDWa7QBxcn7mNDuTfB1QC/KHkRQxHjmDXEAn PpWam4Iet2ds9fve2qCpX6N47HT6g7DNBB3eh8UCCHzDVG0x+pSt32/k8NUaX6rk7c4r SwYl1PRQSpKvul+/BpvbgIHUHreWE4oUWsZh49RjptXymdwfh64tBC9cEhTeNYZgIPyM zC4UzVdA3jvM0IrwrlukrIGUDUyTM+9SskF32cxSnQNA1OZnY8HqlKn0tgRteT+SlKSP FeuPYKAEMzVdkDLJnNkR9A1utpG5xxFHOeZenm75IAj1znQU1C3W9O10Qx1z/9wYO1ok nmWQ== 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=f6ru8517klqGREviW+x/hv4zx4wIPur3uNAYN8tJAH0=; fh=17YvZgVzGG5ZS7L4kfN74vr1MJLFQn7Kam4U1irxq8g=; b=JeoeF4iop6Zk/N0BYi3rL/rVdy2ohsEw0TVkkbYCecP6JCSfOV+8d7Fo+NH6iQkRYp dpRfxUjpV+R1/hhpE7eLEBWHRmo1o8FL4SBewhJhbMPOLpmzqkv/RB4x4VB7FV6Vpgng IxpKeU+7Os5yfb1n2gRO2JoLZXtu8SQWIMrhLv9pvJkYJ5PqysAUTJzEcMSCLk33sdNC ZmvNa94Ix9QK+suH6PONQr2eQbxOtHx34RmoMk85+0/k5PAm6mOgVzljFpozDwzIIDi0 ixXx2nuDYmTduTT/2ywUlmjf6grHv7YSLjG8+mhgXg6jVXSO4C23uN83HmBHYrlW+ioG bH+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=mpQ7zE3b; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=EWBKr1Z+; 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 g123-20020a636b81000000b0054fd9f2dfebsi8993844pgc.704.2023.07.10.06.11.32; Mon, 10 Jul 2023 06:11:45 -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=mpQ7zE3b; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=EWBKr1Z+; 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 S230364AbjGJNC1 (ORCPT + 99 others); Mon, 10 Jul 2023 09:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232317AbjGJNBb (ORCPT ); Mon, 10 Jul 2023 09:01:31 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1633210D; Mon, 10 Jul 2023 06:01:24 -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 633351FF7F; Mon, 10 Jul 2023 13:01:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688994080; 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=f6ru8517klqGREviW+x/hv4zx4wIPur3uNAYN8tJAH0=; b=mpQ7zE3boNuzxgXmD8+YmLufhYYd6Nfi/b1CtUeVH7C8D+zhVZs1Qy96P3dyluOd/egOvR g2MIVfyX9Y/2jasio1RD76V51+HY0Gk0lE1hld3b33BD4hvJwhk92b3x3fIl8ipEYbNClC OQh+kDWDKb/JL12VDpUQm/hJXgLBlFY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688994080; 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=f6ru8517klqGREviW+x/hv4zx4wIPur3uNAYN8tJAH0=; b=EWBKr1Z+4QVt5mOCxBoTfkQNc9Wcvlk+hs1S6tE8l36rKEOLj9nQ8WUaA7TeuDN4Yd4qnn LFcjRqeScP2uMXCQ== 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 10D9B13A05; Mon, 10 Jul 2023 13:01:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2OUqAyABrGTTFAAAMHmgww (envelope-from ); Mon, 10 Jul 2023 13:01:20 +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 Subject: [PATCH 13/17] fbdev: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers Date: Mon, 10 Jul 2023 14:50:17 +0200 Message-ID: <20230710130113.14563-14-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230710130113.14563-1-tzimmermann@suse.de> References: <20230710130113.14563-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 The flag FBINFO_FLAG_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 occurences of FBINFO_FLAG_DEFAULT, the token can be removed. Signed-off-by: Thomas Zimmermann Cc: Helge Deller --- drivers/video/fbdev/amba-clcd.c | 1 - drivers/video/fbdev/matrox/matroxfb_crtc2.c | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c index e45338227be6..24d89e6fb780 100644 --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -461,7 +461,6 @@ static int clcdfb_register(struct clcd_fb *fb) } fb->fb.fbops = &clcdfb_ops; - fb->fb.flags = FBINFO_FLAG_DEFAULT; fb->fb.pseudo_palette = fb->cmap; strncpy(fb->fb.fix.id, clcd_name, sizeof(fb->fb.fix.id)); diff --git a/drivers/video/fbdev/matrox/matroxfb_crtc2.c b/drivers/video/fbdev/matrox/matroxfb_crtc2.c index 7655afa3fd50..372197c124de 100644 --- a/drivers/video/fbdev/matrox/matroxfb_crtc2.c +++ b/drivers/video/fbdev/matrox/matroxfb_crtc2.c @@ -603,9 +603,8 @@ static int matroxfb_dh_regit(const struct matrox_fb_info *minfo, void* oldcrtc2; m2info->fbcon.fbops = &matroxfb_dh_ops; - m2info->fbcon.flags = FBINFO_FLAG_DEFAULT; - m2info->fbcon.flags |= FBINFO_HWACCEL_XPAN | - FBINFO_HWACCEL_YPAN; + m2info->fbcon.flags = FBINFO_HWACCEL_XPAN | + FBINFO_HWACCEL_YPAN; m2info->fbcon.pseudo_palette = m2info->cmap; fb_alloc_cmap(&m2info->fbcon.cmap, 256, 1); -- 2.41.0