Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4569858pxk; Wed, 30 Sep 2020 06:29:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJDIUJUXRMGKL1TG1XB+pLFu0FUWD0EqJN51YHjOhWahNnOO59s2pPrEHzCvAAYpVQv0Je X-Received: by 2002:a17:906:ae4f:: with SMTP id lf15mr2858791ejb.228.1601472590987; Wed, 30 Sep 2020 06:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601472590; cv=none; d=google.com; s=arc-20160816; b=xwNqdf06I8j7adB+tNy7OurWZv5xv66PMGYNKs8BWcgntmqBqIlK0TodCqWcxORjrB 3v7N0DB94n3/jAuFJpeCMxVy/Fk7Ks6ul30+bxvCcneDi9pwF5X8Xg25RcxD6BUzsHWD wnkHwF7JRxm7pZreNz+CZ2S/Q+gcpuLQ8TBNcwU8zWJOj2xnHvktYc1ikGaKFgaoBYZ3 TldRcbTuylBl8ABkAtQHhENjcggOf8r/QLNfUBOGbgv3oQj9AslAQVKLe7TGyVVJpD1/ SF8iUb6ocPVBiajhR7crYZN0CfyDsYEHZ33+RFfdLu3nvkK+DTVEe8F05SPh7LdDPbh8 d9ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=daxLjX1HSnaVZfyF4q8urSAqXTyI6n7DU3m0+r3gDNw=; b=ZXAoHuV1/lwoMIDIui4TGynWwO5uezC6LkeDKmhdZ3Lb/K8faEGUOpIjriKQCi7LPJ pmmvp0YuDzi0zOX9v2XN8UkFTslQALP7XfoBeY5hfr3jKy7wlA1PHKI6sGGqoP3uvnlv NWIGBrEyMXmULj2irOI2FmV/fwrYXPtqvA9TepBIK4RYhdFZT95nwPi30Q3g+3yIrKvy /IGTFrORYZKus9O3hx52y24qYBEXTOwlJHVwEsLiZKsoR/tb5OyzLE6CiaHde0bkrm4j GlymSnpkmPMiHe09i3GN0x6Z3zH2c+6EbrJMITxJpHxz1zRFEvlZODTXZIG7tIwn4IOY AAfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=us5FxKzK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si1089690ejd.647.2020.09.30.06.29.27; Wed, 30 Sep 2020 06:29:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=us5FxKzK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730619AbgI3N1L (ORCPT + 99 others); Wed, 30 Sep 2020 09:27:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:38766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730239AbgI3NZW (ORCPT ); Wed, 30 Sep 2020 09:25:22 -0400 Received: from mail.kernel.org (unknown [95.90.213.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E97E239EE; Wed, 30 Sep 2020 13:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601472321; bh=gircHDTmaOYdmAjX4GqQkC9md45Fenmq59SXCI2xF+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=us5FxKzKqEdze1ILLTZ2aH83ekt+zNpPhjHqN7ThMKiju8UiDYu2NPR1q4AFw8t8i M9f/V1s9teHzKdOoCn2Kp8kBKq0+6mcGp1il/bO+0foJMeSvKRCSYDTxc/wn1JpW3o ZxWEItpZEnZDTgCtdvv1dOjjjz430Mlc+Q9TG/NQ= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kNc6h-001XKV-96; Wed, 30 Sep 2020 15:25:19 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Rafael J. Wysocki" , Alan Stern , Bjorn Helgaas , Wolfram Sang , linux-kernel@vger.kernel.org Subject: [PATCH v4 36/52] docs: devices.rst: get rid of :c:type macros Date: Wed, 30 Sep 2020 15:24:59 +0200 Message-Id: <505a7a6cc60dabc5b1d022acbb964866047815d2.1601467849.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no need to use macros to use :c:type on this file, as automarkup.py should do this automatically. Also, this breaks compatibility with Sphinx 3.x, as there, structs should be declared using .. c:struct. So, get rid of them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/pm/devices.rst | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/Documentation/driver-api/pm/devices.rst b/Documentation/driver-api/pm/devices.rst index 946ad0b94e31..4bda8a21f5d1 100644 --- a/Documentation/driver-api/pm/devices.rst +++ b/Documentation/driver-api/pm/devices.rst @@ -1,14 +1,6 @@ .. SPDX-License-Identifier: GPL-2.0 .. include:: -.. |struct dev_pm_ops| replace:: :c:type:`struct dev_pm_ops ` -.. |struct dev_pm_domain| replace:: :c:type:`struct dev_pm_domain ` -.. |struct bus_type| replace:: :c:type:`struct bus_type ` -.. |struct device_type| replace:: :c:type:`struct device_type ` -.. |struct class| replace:: :c:type:`struct class ` -.. |struct wakeup_source| replace:: :c:type:`struct wakeup_source ` -.. |struct device| replace:: :c:type:`struct device ` - .. _driverapi_pm_devices: ============================== @@ -107,7 +99,7 @@ Device Power Management Operations Device power management operations, at the subsystem level as well as at the device driver level, are implemented by defining and populating objects of type -|struct dev_pm_ops| defined in :file:`include/linux/pm.h`. The roles of the +struct dev_pm_ops defined in :file:`include/linux/pm.h`. The roles of the methods included in it will be explained in what follows. For now, it should be sufficient to remember that the last three methods are specific to runtime power management while the remaining ones are used during system-wide power @@ -115,7 +107,7 @@ transitions. There also is a deprecated "old" or "legacy" interface for power management operations available at least for some subsystems. This approach does not use -|struct dev_pm_ops| objects and it is suitable only for implementing system +struct dev_pm_ops objects and it is suitable only for implementing system sleep power management methods in a limited way. Therefore it is not described in this document, so please refer directly to the source code for more information about it. @@ -125,9 +117,9 @@ Subsystem-Level Methods ----------------------- The core methods to suspend and resume devices reside in -|struct dev_pm_ops| pointed to by the :c:member:`ops` member of -|struct dev_pm_domain|, or by the :c:member:`pm` member of |struct bus_type|, -|struct device_type| and |struct class|. They are mostly of interest to the +struct dev_pm_ops pointed to by the :c:member:`ops` member of +struct dev_pm_domain, or by the :c:member:`pm` member of struct bus_type, +struct device_type and struct class. They are mostly of interest to the people writing infrastructure for platforms and buses, like PCI or USB, or device type and device class drivers. They also are relevant to the writers of device drivers whose subsystems (PM domains, device types, device classes and @@ -156,7 +148,7 @@ The :c:member:`power.can_wakeup` flag just records whether the device (and its driver) can physically support wakeup events. The :c:func:`device_set_wakeup_capable()` routine affects this flag. The :c:member:`power.wakeup` field is a pointer to an object of type -|struct wakeup_source| used for controlling whether or not the device should use +struct wakeup_source used for controlling whether or not the device should use its system wakeup mechanism and for notifying the PM core of system wakeup events signaled by the device. This object is only present for wakeup-capable devices (i.e. devices whose :c:member:`can_wakeup` flags are set) and is created @@ -713,8 +705,8 @@ nested inside another power domain. The nested domain is referred to as the sub-domain of the parent domain. Support for power domains is provided through the :c:member:`pm_domain` field of -|struct device|. This field is a pointer to an object of type -|struct dev_pm_domain|, defined in :file:`include/linux/pm.h`, providing a set +struct device. This field is a pointer to an object of type +struct dev_pm_domain, defined in :file:`include/linux/pm.h`, providing a set of power management callbacks analogous to the subsystem-level and device driver callbacks that are executed for the given device during all power transitions, instead of the respective subsystem-level callbacks. Specifically, if a -- 2.26.2