From patchwork Tue Mar 26 17:32:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10871749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AC3817E0 for ; Tue, 26 Mar 2019 17:33:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F078528AA1 for ; Tue, 26 Mar 2019 17:33:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4AD028D2D; Tue, 26 Mar 2019 17:33:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95DC628AB0 for ; Tue, 26 Mar 2019 17:33:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732173AbfCZRd2 (ORCPT ); Tue, 26 Mar 2019 13:33:28 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43774 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732149AbfCZRca (ORCPT ); Tue, 26 Mar 2019 13:32:30 -0400 Received: by mail-wr1-f65.google.com with SMTP id k17so7428857wrx.10 for ; Tue, 26 Mar 2019 10:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PHnAFw7KtGJWH7IB2Ih89SEfiEryiR66xDAbrjSGim0=; b=uX9rysD+atELAXSQzMdpP2+cO9QuRcViArirewQM6HXeybrTvwAmzrVELDom2H5FLY rtFQGz1tZCJHHPmuVw4o5hb1R0EVpalCmq7KB5VEOYENDdb/ENsD+gPWk0e1N4LHz52T 78Kf/moUFvoDp4i44CBxWbzuPX54qc5RmOH9n+eEPlT/JVw20W8xvUYXyui9fVhFzFkD psCdo29EjVkknpGElL8vf6FSTk50ftXc+aqcTuLURPy0MGUtyjxa9SoTl+b/VsM4mVsx 4Oge/jTIzeAoGxs6+xzqbtZsaBeAyu3J5itCaYwbEsNZnfF5Is/vAVxYIKFjOG5H1E+F 8KLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PHnAFw7KtGJWH7IB2Ih89SEfiEryiR66xDAbrjSGim0=; b=JApR0q5kQcZr3lM2i1l3ejtTfYxj42hZV/MjR3E156TQx5cNn/XV+QkhhDkQUGbZDk GF/KM2M3Cb/iF6F21UVbE5Ojb9Ys08fL4LLXvAnfUADR1oASbytdvGOc9okZA570uwqW c2JXa0M4c4+r3zeTDdMBeyPiwyRAAZwev8mJ7sYQ4cFcYYjEXRAxouQYFp8/r3pSObmf G2e4nt9ccmXIDgstee9jbzvyOBG8517l8uLwS6GrczqPSHJIqB02PwoFTXofKNkkrAvE wU7SYNEaFhMrNl4VTPuDzUDrZzKSSxuGWEFmsrqMBB4Uxz7YDJ0Zx/skvSJc+p5URcei ttHA== X-Gm-Message-State: APjAAAUbw7iGGl3ESMCbG+LwWn563zb4F0rVQsviNC7VVHYXcAwF1p/p QAiAOPwLPUs7hVR/gYkhmJ2R0g== X-Google-Smtp-Source: APXvYqwuO8YMhLtFa0EJiZEw5Bdz2FZmrEuguS45eaXvbnKC2oJCgqQSnivCheO9nvBKOgjuP3SLLQ== X-Received: by 2002:adf:fd88:: with SMTP id d8mr14336838wrr.320.1553621548143; Tue, 26 Mar 2019 10:32:28 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id 4sm2534541wmg.12.2019.03.26.10.32.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 10:32:27 -0700 (PDT) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Linus Walleij , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Lee Jones , Sebastian Reichel , Liam Girdwood , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v7 05/11] mfd: core: document mfd_add_devices() Date: Tue, 26 Mar 2019 18:32:02 +0100 Message-Id: <20190326173208.30614-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190326173208.30614-1-brgl@bgdev.pl> References: <20190326173208.30614-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski Add a kernel doc for mfd_add_devices(). Signed-off-by: Bartosz Golaszewski Acked-by: Pavel Machek --- drivers/mfd/mfd-core.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 94e3f32ce935..0898a8db1747 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c @@ -269,6 +269,20 @@ static int mfd_add_device(struct device *parent, int id, return ret; } +/** + * mfd_add_devices - register a set of child devices + * + * @parent: Parent device for all sub-nodes. + * @id: Platform device id. If >= 0, each sub-device will have its cell_id + * added to this number and use it as the platform device id. + * @cells: Array of mfd cells describing sub-devices. + * @n_devs: Number of sub-devices to register. + * @mem_base: Parent register range resource for sub-devices. + * @irq_base: Base of the range of virtual interrupt numbers allocated for + * this MFD device. Unused if @domain is specified. + * @domain: Interrupt domain used to create mappings for HW interrupt numbers + * specificed in sub-devices' IRQ resources. + */ int mfd_add_devices(struct device *parent, int id, const struct mfd_cell *cells, int n_devs, struct resource *mem_base,