Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3513307ybi; Tue, 18 Jun 2019 01:58:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqztKaOh6VjrIb3pL3VOGIEkWXq5kjxOpkvZZwFKK/bCTDD2SXwNBWC1d94OMiBf8e8aeLqO X-Received: by 2002:a65:42c4:: with SMTP id l4mr1657738pgp.436.1560848283247; Tue, 18 Jun 2019 01:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560848283; cv=none; d=google.com; s=arc-20160816; b=phvikWaYa5VY2FyI3ysUhy1xkhWw51yB4iHqkcV+aSWkEmWIKqeo2AYv6PTXhvnjeU xlOB+cvZcTbeGwT1kkZ0a77FucrJRYewFHKU73UyAXgwnSD87p+ASieZkLDmtWg19j4x GEidZea3u+s0SL7M8WgoEQkz1ArJhtcqEX/OrPna5I8x9CnoB0JoMwwq3YDYrFElRaok HnaKvAn9lWatYUhYGMxVTNAP4+0+TpRboAbLoY8+sPBMTQvozAoSnDUyFtyikqL7+1bL toPIlQ2G91HVIKw5jRlq1LoiNJv32ZG96n0Gqb/Nv54xaHFZgU02DDXiMHlz3OWoM3Mc jcBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZLVLQt26NmsIER+7PZsRkHOdHMZEPi2lQWs1mdEjmhw=; b=ibnaK5mg21UTbqN6KA9N3PlaovX28wTaXZz39Na6O8ZN+0t7umUlrtcuz5mSn1NhCD PBF3qgIx8NEnItm+FkkT0KAR3+YuQ6hGWHqHrYJymfv74ByePsdMgF71bs83L8qdKPt5 Vu2st4sVy/mrGSDKh1zIm1YnzdZVUoUVX9Xutq+nJf6XHTkcIRkRhH6PzM2/4E93Fqxz e8LaTTlh1KtyfR7DrbteX1y6ANp+u3qOlpyiBZvsDR11xB971hkAxZO2nM1PsPYNm+bj 5/QyYFuYiwqr8wEYEDUYPZSYoSOlauSrQphHONDcJS8KrKdRlU8AWCmnLo6IeWueBfRg Lbgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si12897924plf.261.2019.06.18.01.57.44; Tue, 18 Jun 2019 01:58:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729107AbfFRI5f (ORCPT + 99 others); Tue, 18 Jun 2019 04:57:35 -0400 Received: from mga05.intel.com ([192.55.52.43]:9223 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728385AbfFRI5e (ORCPT ); Tue, 18 Jun 2019 04:57:34 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2019 01:57:34 -0700 X-ExtLoop1: 1 Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by orsmga001.jf.intel.com with ESMTP; 18 Jun 2019 01:57:28 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hd9vj-0007K4-1F; Tue, 18 Jun 2019 11:57:27 +0300 Date: Tue, 18 Jun 2019 11:57:27 +0300 From: Andy Shevchenko To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, thloh@altera.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH 01/30] include: linux: platform_device: more helpers for declaring platform drivers Message-ID: <20190618085727.GJ9224@smile.fi.intel.com> References: <1560796871-18560-1-git-send-email-info@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1560796871-18560-1-git-send-email-info@metux.net> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 17, 2019 at 08:40:42PM +0200, Enrico Weigelt, metux IT consult wrote: > From: Enrico Weigelt > > Add more helper macros for trivial driver init cases, similar to the > already existing module_platform_driver()+friends - now for those which > are initialized at other stages. Lots of drivers couldn't use the existing > macros, as they need to be called at different init stages, eg. subsys, > postcore, arch. > > This helps to further reduce driver init boilerplate. > +/* postcore_platform_driver() - Helper macro for drivers that don't do > + * anything special in module init/exit. This eliminates a lot of > + * boilerplate. Each module may only use this macro once, and > + * calling it replaces postcore_initcall() and module_exit() > + */ Perhaps you meant kernel-doc format? -- With Best Regards, Andy Shevchenko