Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35334855rwd; Mon, 10 Jul 2023 06:09:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHsmR9Dm8pRCoIThwTqDJ8dj8ZWCexNEQSkU21BCJKqjfXbKpqEmVqE1zOkTOPkynr+e6d X-Received: by 2002:a17:903:cd:b0:1b3:ea47:796c with SMTP id x13-20020a17090300cd00b001b3ea47796cmr8897957plc.29.1688994549503; Mon, 10 Jul 2023 06:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688994549; cv=none; d=google.com; s=arc-20160816; b=ccj5thZCeU4/8sr2sLD+zWFX5os97Vd57p2bGCahfcDsWFlCsJM07qEbaPbc+mS3Kd DX6Wm2uNTx17wRYsAQepWClGjFzM+3rIS3oZOLyomfWjadDUhvSHR1KB8P4MHdQfWbR6 XV843PfJUkXZEkTDhExPIT35a15y/AlK0gfoh3MW+nO0vCS15rqwkDb1L+LIw6WSUwwD Yk9hM6xFqEv8o9DFzMaMjjwFo9WOIdqQgboNkhBY+iz8aTyi4QW85Sc6VP3G/IphFUax 99jI5VCf3nf2L8sHfcR0d8hosC5hrNb3tqbny8wJ0Ci6CayKjdfBTjCgA8XLWaKPEOHW rUWw== 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=lWWwXqFHkJoFRJnBP/tkYpxJ2fIKEgYRr4uaZT1fhPw=; fh=3MCwIGEwqRCdfBsfgGrYcMHX66xiZaV/tuNYSiZ2O7g=; b=sjyBp1F67L8SEd0oPotUMz+f8l+9HRmOPbO5IQW9uvmGybsUNvAoK6zGj63t70Y9jS rnvTYHkIptmrDvu+Wkb/rjpDmv/azWZjudzQh+QiKxhzDRmr5shRy/NQPBBEA4Sej5Hb xnMcjiCbrJkVPPia7TrycVrzjxDnSxVsqy3g7Sb0/AuepEvdnfjPFoMTxvj0hbk2fl9u YCqRSQMIdzOO+5rVTSiNnUznHgowvs2L+mboGjjAwiuzMFOhobYFtRppabjeUfvi+f0L YaMIlbGSqKZ8gxLSqpcsHjZ8XRmp+3Az+RmPmcpXm7XrylkB63d+83SJ2llVNl+kHnT9 yHfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=wcW+A62J; dkim=neutral (no key) header.i=@suse.de; 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 u8-20020a17090341c800b001b9d1813011si4435777ple.455.2023.07.10.06.08.53; Mon, 10 Jul 2023 06:09: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=wcW+A62J; dkim=neutral (no key) header.i=@suse.de; 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 S231702AbjGJNCB (ORCPT + 99 others); Mon, 10 Jul 2023 09:02:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231516AbjGJNB1 (ORCPT ); Mon, 10 Jul 2023 09:01:27 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06B32F3; Mon, 10 Jul 2023 06:01:22 -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 C1E75221BF; Mon, 10 Jul 2023 13:01:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688994078; 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=lWWwXqFHkJoFRJnBP/tkYpxJ2fIKEgYRr4uaZT1fhPw=; b=wcW+A62JsRs94szzFkHpTaJQhTixZO3otUOrUYJZplkA+QV4JDqKu6Yo9vjJbT2a3yX1dG MUYRcQSpVlH/acY9ZiDyyP0Hfn4qTqgjJp5coIPReUxD/omNcBBEH4KKbrNWMAa+908VzB lFnCcJk75lFrfnlhi29kG6xDdvfNZzk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688994078; 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=lWWwXqFHkJoFRJnBP/tkYpxJ2fIKEgYRr4uaZT1fhPw=; b=y9M6fAed/RjL42oavLcDeaRzIZv9QEthz+0WSEmwzDtiN2ptcJSQ9YxZpKcrxDn3odrNpP FYsso5Me7a+iAfDg== 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 6D5CA13A05; Mon, 10 Jul 2023 13:01:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id IFrfGR4BrGTTFAAAMHmgww (envelope-from ); Mon, 10 Jul 2023 13:01:18 +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 , Miguel Ojeda , Robin van der Gracht Subject: [PATCH 09/17] auxdisplay: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers Date: Mon, 10 Jul 2023 14:50:13 +0200 Message-ID: <20230710130113.14563-10-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=-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_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 occurences of FBINFO_FLAG_DEFAULT, the token can be removed. Signed-off-by: Thomas Zimmermann Cc: Miguel Ojeda Cc: Robin van der Gracht --- drivers/auxdisplay/cfag12864bfb.c | 1 - drivers/auxdisplay/ht16k33.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/auxdisplay/cfag12864bfb.c b/drivers/auxdisplay/cfag12864bfb.c index c2cab7e2b126..729845bcc803 100644 --- a/drivers/auxdisplay/cfag12864bfb.c +++ b/drivers/auxdisplay/cfag12864bfb.c @@ -79,7 +79,6 @@ static int cfag12864bfb_probe(struct platform_device *device) info->var = cfag12864bfb_var; info->pseudo_palette = NULL; info->par = NULL; - info->flags = FBINFO_FLAG_DEFAULT; if (register_framebuffer(info) < 0) goto fballoced; diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c index edaf92b7ea77..df3f37651e45 100644 --- a/drivers/auxdisplay/ht16k33.c +++ b/drivers/auxdisplay/ht16k33.c @@ -646,7 +646,6 @@ static int ht16k33_fbdev_probe(struct device *dev, struct ht16k33_priv *priv, fbdev->info->var = ht16k33_fb_var; fbdev->info->bl_dev = bl; fbdev->info->pseudo_palette = NULL; - fbdev->info->flags = FBINFO_FLAG_DEFAULT; fbdev->info->par = priv; err = register_framebuffer(fbdev->info); -- 2.41.0