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: 1058021 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="W61Z+6Gw"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44NNpR5knzz9s3q for ; Tue, 19 Mar 2019 04:43:59 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727706AbfCRRn6 (ORCPT ); Mon, 18 Mar 2019 13:43:58 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34309 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727911AbfCRRmm (ORCPT ); Mon, 18 Mar 2019 13:42:42 -0400 Received: by mail-wr1-f67.google.com with SMTP id k1so17599553wre.1 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=KJIEUCxZxutH0shTzpw3erWVuAztIIthy3S3XNhw4IRlCkprP1LplFA0LJT7ceToZz XLkNHK7mXsig/xiThBZuWnlHpxqbRmeAhABu3ZTXDHAYFLJNKnjLzlS3gj3kB2M+wywY 844YP+RXvi0VwgyjGwhQEaw9/s/4N4VumyKZ7AgjQDUPXY0i+r8M5K3q129dWt+J39my TLykYVlyMc0xp7L5JQk/xh2ELivol5WYSL3g+Ea2HKQDJ+wAW8uOKk28BMQuNTczRGdG El6Drl903jsc/5jwtMohZcxHfjWAsKk8fRwk9iT94XFxS0/yxKQD9pYkheLyr3W3g8Kl arzw== X-Gm-Message-State: APjAAAWE95vwYIBnbAXtphIO4nbs0axXTJCw1Nqi3thv4cVkaKbJxzjc amBdoyS1ZkaSJGJGkLADlGLKkg== 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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,