From patchwork Mon Mar 18 17:42:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10858319 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 7524C1575 for ; Mon, 18 Mar 2019 17:42:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BD44285E0 for ; Mon, 18 Mar 2019 17:42:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59E15293A3; Mon, 18 Mar 2019 17:42:44 +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 0DF54293F3 for ; Mon, 18 Mar 2019 17:42:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727920AbfCRRmm (ORCPT ); Mon, 18 Mar 2019 13:42:42 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:32919 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727907AbfCRRml (ORCPT ); Mon, 18 Mar 2019 13:42:41 -0400 Received: by mail-wr1-f65.google.com with SMTP id q1so2398388wrp.0 for ; Mon, 18 Mar 2019 10:42:40 -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=rD/Z65OnYoppq/ikSxqUpjeEOremUITKG7uIaduTeV4=; b=W61Z+6GwoguIn+kuWlioUvDowh6U4YGUvduTzVxMh3ZfloEfISU/2Kbcoz/2UbXvpK Ebl1DgR1UEDndkphzYm1kq5mYrZ/djP3ArzsrslGLgGndhcZuC+L7krNMWsg7wanrRMj Mfmrt5wqbDHUPWLkiAg35iJYZz2JWJePCwEzvpmxLkYbA7xkQE+6e/Z3W2HQhhzLrXa0 flzrjiA8LNlJbEy4HcJL/cQMGuRlyVGi6xID8KMczKQVGRf/SlpeXGrjMPL74bkPNp8W VD/E4OY/l2LpsF2krS3Y1kJqYfB85kQrGKpjzcWtiW0QtJZXZ2kqwQAezprtU89ortHr nhzw== 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=rD/Z65OnYoppq/ikSxqUpjeEOremUITKG7uIaduTeV4=; b=cHQ22Swbg051plXSpbJ6iEfmQ9meTwvUXHRXcJ19bkHutB9rSXkCwBf1BFBrb0RXwt 78YpDubSkMUNk5LZuQhG47OzHq6vRvIonjm8I549OSmKxH8KynkZNAstxQZTxGqEdOZp 4+J3Ytl/WtyW49PeNtphCWT8goESkRTKm5UB+5rDGJ20TQMEjWboUN6Ti0Sy+PUHgtLL ToSwnwO0nDrFS7bsljuwUd2iyuGO1q7MZHbDV2SHllnxYSIFMKlDS5Egga6ePYacSFTO r3wgQCxxV+yBl56FRzsklY8oY9EBxX9xk79E0969qMxIVhY5sFvMUEUSfrgRdsVI/deU cIow== X-Gm-Message-State: APjAAAX4GAG3J8i4yo6lXPgma8k2lPvNx/IbeXOV/M7veXB8hQ5VY3o4 k3KA+scAmlV/y/OTNMYnHWYxng== X-Google-Smtp-Source: APXvYqz5zwA7Sk2bRr82IuC+ZZzGWs1/CQKjZKXHsEaYpjQL3BxLW6z9LabbNoF8eyUuq5x7h9gEgw== X-Received: by 2002:adf:fb82:: with SMTP id a2mr4167878wrr.214.1552930959978; Mon, 18 Mar 2019 10:42:39 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id g24sm14873909wmh.45.2019.03.18.10.42.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 10:42:39 -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: [RESEND PATCH v6 05/11] mfd: core: document mfd_add_devices() Date: Mon, 18 Mar 2019 18:42:22 +0100 Message-Id: <20190318174228.18194-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318174228.18194-1-brgl@bgdev.pl> References: <20190318174228.18194-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,