Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35340210rwd; Mon, 10 Jul 2023 06:12:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGDQ99w3loCakRCbLc+PtnDATcKy4tKXy61Cc0Xx8IARSvO0z6MaV6UuwFNJnOUo0j6bbL6 X-Received: by 2002:a05:6808:1524:b0:3a0:598f:7d29 with SMTP id u36-20020a056808152400b003a0598f7d29mr11202313oiw.16.1688994760639; Mon, 10 Jul 2023 06:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688994760; cv=none; d=google.com; s=arc-20160816; b=mtuGxrUAOzFL5ojcHFFQ9MQhzP7amPMJc8m10t6eYSAGrcCAg9/EFI2bCU9tBLlMZI 9+aZ4HRHxT0XqOD8iuLDkbgSnOUJtsm90CJucXCv8T7inKsF30YgXSHADVxk1sTvkCdV 4+6W0ok6riRZCz1QbR5y7bgshXd4gJvtOGPG6gIFdpgSvywzaLWwVSZzlitORYfQvyK6 qjRLi0lxikiRzImGTmL9qyVvqFjrHAUptt2HHi8WVS9a9zWFqcjeLuNBpr9Z37RtgAzZ 6FyTgqUPDDoqT5xWrv5FhvKUrtyAdg4QHglvWfxpXunO1P4/9zGpXkA+8DSXDiRzBFKR bm0w== 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=U5HcF0EOqPMZ0Q7ic0OPiZkVLPnoHAue4PGOkSvaE5w=; fh=37ZmlTPI3LnplYliX6mBXpTqJAFrMAPJQoOLAykcvE4=; b=UHT37ZX3vEcZd7rGwqw1+u5VZO7Ukl6nCKgrxxJz9e/2ZkzD9bEsfb9FzW04H8b4So HaSwSbveatus/p6L5CwBqut+ny87pQ2Oq8hOBh20ju48ObPh5amZp9wvcyBKIx3Y8zkG aIPzRI56SNsAOmSoj9L10u2X0cIhYTzBJsDDmbBLlxaQu3W1x8AjLSpDfWRH8371xY6n 2DTiyrcsCRrD+3QejmqX6ftij/hFx15BMFTZQN5I+ZUZqTVErQoSH9MKN3nJRZYbRZXM h6VfYfAg3rhbQ/YZlZS1DjO/XkvzaJ1rDDtBdOwFqNFitCGTTmbrs0/7ryOmgnF7ktbQ +yeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="XpjYa/hB"; 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 11-20020a63164b000000b00553e8d95742si9076712pgw.654.2023.07.10.06.12.22; Mon, 10 Jul 2023 06:12:40 -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="XpjYa/hB"; 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 S233062AbjGJNB5 (ORCPT + 99 others); Mon, 10 Jul 2023 09:01:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232113AbjGJNB0 (ORCPT ); Mon, 10 Jul 2023 09:01:26 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 126A5137; Mon, 10 Jul 2023 06:01:21 -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 9B3551FF7B; Mon, 10 Jul 2023 13:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688994079; 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=U5HcF0EOqPMZ0Q7ic0OPiZkVLPnoHAue4PGOkSvaE5w=; b=XpjYa/hBdx/hXGtSM2cSKACM+oOc9oNE3pxIWzNcvCblLCqY3pOjQjgUrsggzqGFa+CenN mo9ezrCzvzsbcYT0iJ05ZgEcenQ6SKCOX+3KRNEPs869teZMTBE6HlbGe4oIyhxnd9NxQM ZpEJZ/pzBuMms9Dg4gBhbMd03oIu0+0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688994079; 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=U5HcF0EOqPMZ0Q7ic0OPiZkVLPnoHAue4PGOkSvaE5w=; b=GvI/xjwIrG9Ur+7PsxYhhCFPXAbhZL7n1FhaAeK/4xjA439Xq6WH6P0zsJ0/iPBE4Kps9U EL9UKUyNWIgU9jAw== 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 3889713A05; Mon, 10 Jul 2023 13:01:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SA/sDB8BrGTTFAAAMHmgww (envelope-from ); Mon, 10 Jul 2023 13:01:19 +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 , Andy Walls , Mauro Carvalho Chehab , Hans Verkuil Subject: [PATCH 11/17] media: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers Date: Mon, 10 Jul 2023 14:50:15 +0200 Message-ID: <20230710130113.14563-12-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 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: Andy Walls Cc: Mauro Carvalho Chehab Cc: Hans Verkuil --- drivers/media/pci/ivtv/ivtvfb.c | 1 - drivers/media/test-drivers/vivid/vivid-osd.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/media/pci/ivtv/ivtvfb.c b/drivers/media/pci/ivtv/ivtvfb.c index 0aeb9daaee4c..23c8c094e791 100644 --- a/drivers/media/pci/ivtv/ivtvfb.c +++ b/drivers/media/pci/ivtv/ivtvfb.c @@ -1048,7 +1048,6 @@ static int ivtvfb_init_vidmode(struct ivtv *itv) /* Generate valid fb_info */ oi->ivtvfb_info.node = -1; - oi->ivtvfb_info.flags = FBINFO_FLAG_DEFAULT; oi->ivtvfb_info.par = itv; oi->ivtvfb_info.var = oi->ivtvfb_defined; oi->ivtvfb_info.fix = oi->ivtvfb_fix; diff --git a/drivers/media/test-drivers/vivid/vivid-osd.c b/drivers/media/test-drivers/vivid/vivid-osd.c index ec25edc679b3..051f1805a16d 100644 --- a/drivers/media/test-drivers/vivid/vivid-osd.c +++ b/drivers/media/test-drivers/vivid/vivid-osd.c @@ -310,7 +310,6 @@ static int vivid_fb_init_vidmode(struct vivid_dev *dev) /* Generate valid fb_info */ dev->fb_info.node = -1; - dev->fb_info.flags = FBINFO_FLAG_DEFAULT; dev->fb_info.par = dev; dev->fb_info.var = dev->fb_defined; dev->fb_info.fix = dev->fb_fix; -- 2.41.0