Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1121530rwp; Thu, 13 Jul 2023 06:31:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlGV2WLFFvuxMPZ7GDmJqHPaD/1DkQMh8s1DNhwk4KBXu34B7JnNONF0iANKMLxEi9jJtMmT X-Received: by 2002:a05:6a20:6a0f:b0:12e:caac:f260 with SMTP id p15-20020a056a206a0f00b0012ecaacf260mr1176422pzk.2.1689255062844; Thu, 13 Jul 2023 06:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689255062; cv=none; d=google.com; s=arc-20160816; b=VZQawyyYgc+Ks95oD2lNldR8v9n3gwMqP5x72y1mQ+ikzM2EPhBpDnq1OWFNCQ1bAg W2La8T47EQe4YqknBW6msyyvxO5HsUTp7WF+fAuaWWJdZX07BTJexAPKblXNFPvf3YPN mSka8efYbIVJ9CQUztZhA7nNPLghYyvuOE4++EWthLLDIbhMRESU1BgVu16uzOliZxlg V3ln90mo6Ad7svuNuUqLU80qDHqUiu/umXMtkpaTTrHqI/cix73qLgf17zXX+bO3e4nA IREuoprixqFo+E2MGGhQc9Vot0Aj/3shOfPaPXTUjmpKMHa7Ixt3wzxfUGibUK7kTgFF Absg== 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=YWl4r3MXDzIpXc1GMxrVHAXu9+tdMITd+1eR5phnaTY=; fh=LOOiPr3Avj4evljpXB7QpGIfs+U68Y5XcTpeyerUn5U=; b=qbZwPqLmM33sXpFi2Yi6UwEIkP+Mvb86ehld6LqOrad3wPYm3Wns5mPF4iFe4XNcZH MeW3CpBPm7uOzoAS3y5HTbAEPVpjFoGvzuWPXXaGPMsnmQev2DLnX6TB6ILPnO27vAvQ WJourxzJZ3GUWyc1oDdVSycNyNb0QyFcRtXox88PQh7cyjQAaRqkg5VsHChnKwNaUUZY TWlhP9qBUH+niCzMofVRJ5T41eb+YltAGyxSKbdNW/DJhxI57W3U3YswKa5Qjqn2FRDV F9WYsIM6XWzcVOVjW2WuzIylZO4Tfy7/0ZBVL9TCkDOmaceQ3W4glotYy/NQpea8xs4n 6IhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=04CnQgAm; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=ec+5vC3W; 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 b32-20020a631b60000000b005577fd7efa4si4776103pgm.427.2023.07.13.06.30.50; Thu, 13 Jul 2023 06:31:02 -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=04CnQgAm; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=ec+5vC3W; 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 S235094AbjGMNEU (ORCPT + 99 others); Thu, 13 Jul 2023 09:04:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234614AbjGMNDs (ORCPT ); Thu, 13 Jul 2023 09:03:48 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48ABB173B; Thu, 13 Jul 2023 06:03:47 -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 C39291FDC0; Thu, 13 Jul 2023 13:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689253425; 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=YWl4r3MXDzIpXc1GMxrVHAXu9+tdMITd+1eR5phnaTY=; b=04CnQgAmUPY2ofkifWslTbSAmyKg1O57m846gw+qFeonG2ITooKTEGjZQRXt/lMH18xklb NKuHVY7ay1jU9SYlOhxCu3n6Llh0rRDcIVrmHLB28kU0VM7d8zdEG4PHsIlOcAyG7B/TbU bU8XBZ8a/aPVbn8rnEo0Wo+3UFUyuvM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689253425; 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=YWl4r3MXDzIpXc1GMxrVHAXu9+tdMITd+1eR5phnaTY=; b=ec+5vC3W5H3JZ0nduxOVzPI8ZAUNmttDx3HIfyTxuzCzrHBZIAI5wFmprWo/9JusCuSjUP JKsUEjL+cCwhz7DA== 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 60F1313A94; Thu, 13 Jul 2023 13:03:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id COSxFjH2r2TVPgAAMHmgww (envelope-from ); Thu, 13 Jul 2023 13:03:45 +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 , Miguel Ojeda , Robin van der Gracht Subject: [PATCH v2 09/18] auxdisplay: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers Date: Thu, 13 Jul 2023 14:58:29 +0200 Message-ID: <20230713130338.31086-10-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_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 Acked-by: Miguel Ojeda 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