Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2468824pxu; Mon, 14 Dec 2020 03:10:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4nIhQW53clY5mZzbxorsJsrGFUmcJA2qtIRA/+dcjwEYINAbvxjpeHEMqTWRjcbKqqOHr X-Received: by 2002:aa7:c058:: with SMTP id k24mr24321303edo.263.1607944246381; Mon, 14 Dec 2020 03:10:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607944246; cv=none; d=google.com; s=arc-20160816; b=ldbl3iTz3lJ3CRScguiQH/Aoq/x4/8YFDx1lTEPxzWhz1SJ+WUpjByciNqYj4uhfz5 zOXdy+hlkD26tYrcEvWlHWoWKrNtr0jjg2/Y4SCpeMS+n4rep+3eoBcqR3kn4rVeHxzc 8cFf6iVOvvkDu6Jg+vVeC89miSGwWcwh/xJ7VjHsa3RVXZ6wxQeMozFUcCZ2uUBn5l0z mBMy/j7qoLbQDy6h8j1zhW+nnRvIxr58YtKoR9o2j+b57S04AaIweb9E2bE20PS3lutJ mKFx1BkMyqEM7XD7eHkUEz2uKOKR7bDHBE4q6RFvyaYJBIvajTZlhuuQEu07WDOsT79i 2clQ== 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; bh=wgdIOUVSJkEHvhz1/JmHKwTpRoL4nc38wQanUgYOzZE=; b=O+RNQbI6wpkAPQ07HnPtjK+HpWj6w+Yf9VPQ2gpe+gGWI4Kc08vRm/m75OQXhWIQ99 gc/2RiF/FNop7+yqnNns/Ye4DeNFKN3hayJ6tPmZdcTN9fLsdkDVmB6AKRGB+QPT8LiQ 3V+F6wDFQGt4VxeVobHQMsZaEy2AKkG263+7cwIu1mawNImamZixJQHtzabbGoXgOPvk RD5xKDGmSK08gyN9oXVpIYOTseThgHiGNdpIvmFpK1zQ0edBNl/otmt1bnW8QyR2qf6f nTPAABNXWu/+HXYVpzqmxz7oQnBrumukZZ0m9laP4o22RGt6LQRdEiu2KHMrH8RxvbWY 6lQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si9843972ejp.237.2020.12.14.03.10.23; Mon, 14 Dec 2020 03:10:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726886AbgLNLDu (ORCPT + 99 others); Mon, 14 Dec 2020 06:03:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728159AbgLNLDY (ORCPT ); Mon, 14 Dec 2020 06:03:24 -0500 Received: from faui03.informatik.uni-erlangen.de (faui03.informatik.uni-erlangen.de [IPv6:2001:638:a000:4130:131:188:30:103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 326C1C0613CF; Mon, 14 Dec 2020 03:02:44 -0800 (PST) Received: from cipterm0.informatik.uni-erlangen.de (cipterm0.cip.cs.fau.de [131.188.30.90]) by faui03.informatik.uni-erlangen.de (Postfix) with ESMTP id 42989240B54; Mon, 14 Dec 2020 12:02:42 +0100 (CET) Received: by cipterm0.informatik.uni-erlangen.de (Postfix, from userid 67858) id 4055B3280146; Mon, 14 Dec 2020 12:02:42 +0100 (CET) From: Philipp Gerlesberger To: linux-kernel@vger.kernel.org Cc: Philipp Gerlesberger , ij72uhux@stud.informatik.uni-erlangen.de, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@i4.cs.fau.de, gregkh@linuxfoundation.org, sakari.ailus@linux.intel.com, mchehab@kernel.org Subject: [PATCH v2 01/12] media: atomisp: Convert comments to C99 initializers Date: Mon, 14 Dec 2020 12:01:45 +0100 Message-Id: <20201214110156.6152-2-Philipp.Gerlesberger@fau.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201214110156.6152-1-Philipp.Gerlesberger@fau.de> References: <20201214110156.6152-1-Philipp.Gerlesberger@fau.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The struct initalizers have been changed as recommended on https://kernelnewbies.org/KernelJanitors/Todo Also remove all the false, 0, and NULL members. Co-developed-by: Andrey Khlopkov Signed-off-by: Andrey Khlopkov Signed-off-by: Philipp Gerlesberger --- .../atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c index b4f53be18e7f..834b07e2cd9b 100644 --- a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c +++ b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c @@ -30,34 +30,22 @@ static struct ia_css_rmgr_vbuf_handle handle_table[NUM_HANDLES]; /* * @brief VBUF resource pool - refpool */ -static struct ia_css_rmgr_vbuf_pool refpool = { - false, /* copy_on_write */ - false, /* recycle */ - 0, /* size */ - 0, /* index */ - NULL, /* handles */ -}; +static struct ia_css_rmgr_vbuf_pool refpool; /* * @brief VBUF resource pool - writepool */ static struct ia_css_rmgr_vbuf_pool writepool = { - true, /* copy_on_write */ - false, /* recycle */ - 0, /* size */ - 0, /* index */ - NULL, /* handles */ + .copy_on_write = true, }; /* * @brief VBUF resource pool - hmmbufferpool */ static struct ia_css_rmgr_vbuf_pool hmmbufferpool = { - true, /* copy_on_write */ - true, /* recycle */ - 32, /* size */ - 0, /* index */ - NULL, /* handles */ + .copy_on_write = true, + .recycle = true, + .size = 32, }; struct ia_css_rmgr_vbuf_pool *vbuf_ref = &refpool; -- 2.20.1