From patchwork Thu Feb 14 14:00:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10812767 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 F2BAD13B5 for ; Thu, 14 Feb 2019 14:01:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E255F2E68C for ; Thu, 14 Feb 2019 14:01:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E07142E5EC; Thu, 14 Feb 2019 14:01:35 +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=ham 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 837282E68C for ; Thu, 14 Feb 2019 14:01:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438980AbfBNOAq (ORCPT ); Thu, 14 Feb 2019 09:00:46 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39391 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436970AbfBNOAp (ORCPT ); Thu, 14 Feb 2019 09:00:45 -0500 Received: by mail-wr1-f66.google.com with SMTP id l5so5505749wrw.6 for ; Thu, 14 Feb 2019 06:00:44 -0800 (PST) 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=gTCgFho7zo/veyoui1W9bvplodyAUd1b04B19jU298EYa2SsV4BWgz/23WmBUvOvAi fwgRsJffRaRxJYjwgSwV6H3hCzMwjbGsU94koPJxPNIOefHQ2LL52Rgdb7AtilKWqmW0 ZitUDRL8A6rd+6ozFB6LlPD5SHPYFiuKw5w1nx3M5JDSq7OlJi7WVeHyb0xMsBFFmK04 lfwPJY1kez09+1URhoWJS/I4moaijbPeJi9i39zZu7s4orN9qOQeqdO2svcETnuauFxn pwgWfQrJDrD4XmQ+nN2UY9tzlxKeztzA99wYnSzT9+fKBePxhAv8ObJwBSOPwB5HRheX bMqA== 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=A8qIr6K4gEtt44EkGTrE3HVa4HNJN4JulRXy/06ZFGRIBz0TM8PSP90r1UqUuDRtlX tQjP0R6bFqBaQdcqbxW2NVkLLIuEPYNgF/hReUf19P5o6mKJaMrbs+HJ2hI1K2nOHVFM DodaAz6XmPhzuTQCx1f7FmmkmDGLxLARNFzK8RERWHo3jHgQ6I19YI4wgg597wbgsx8m I/5+Xqbv9tROivgaYVMiHsEM+RwuW3R4MzpxbNcKhJO8jsdgH6f1f99HxhVCDaGHHnmt SmgCF3e8W4jWIYhlzsTgfCgQzDLC6pfxhyHML/RoZs7MMEmtaFdJO3FPkGoKXKpAt+W8 JoBg== X-Gm-Message-State: AHQUAuYkzj5mMznkHMvi1SqVCawXwwP1ZKpUdeDSHA0wqLbLR0UUjRw9 9pzduSzW6FPh0lL9QeeP6TFwiA== X-Google-Smtp-Source: AHgI3IYccfpg672+aKnS7Pnxwnja+i8dtvQUAyVPxCFJsa/p/QIqpaWlODJf+ZkYv4XEGSU3KJvuQg== X-Received: by 2002:a5d:4dd0:: with SMTP id f16mr3087778wru.127.1550152843984; Thu, 14 Feb 2019 06:00:43 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id h142sm3395677wme.33.2019.02.14.06.00.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:00:43 -0800 (PST) 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 v6 05/11] mfd: core: document mfd_add_devices() Date: Thu, 14 Feb 2019 15:00:16 +0100 Message-Id: <20190214140022.19201-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214140022.19201-1-brgl@bgdev.pl> References: <20190214140022.19201-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 --- 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,