Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp314378pxu; Tue, 6 Oct 2020 07:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHOT0vgwz5IzSN4kUyFn/UI4iQ3Rk54wXCtESHH1mLKPJVsBNMwQI3CK5M7Z0zGuvbTX9y X-Received: by 2002:a17:906:22c1:: with SMTP id q1mr5171031eja.529.1601993286830; Tue, 06 Oct 2020 07:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601993286; cv=none; d=google.com; s=arc-20160816; b=Jh2kediQtEEKjULanuETfBPa4sUT3sMGPqOE1QKLC+Pkx3WP0Qht4L2wsfHIDdjbpX aJa3MLh5/jzzXwue3165/5DVVuy4EUB2QEs+0H7nRTN46muMLOMe84ADyFOA79ieQ41f 6nG16Besx34eMd2OL4TLIBhzwC4BKq4bNh985BRw2nuzB8C31B1Q/8YqIZnoU+rJJZTp nc/xZEnHCV/V50jT1gTovaqNzJJ+C71hMFHEwEt1Px3m49YctxFsA3XhL0POcnihYI1p yJGDhkiett6/hjkowtlRvClhgBD+W2HcRKofrss3c7TeMefN4ft+j3DBPGRysLed4LNm fJDg== 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=YoTNnRUi2j9kxpaqKQ8OlcMrYEyD8l1/gtwLOodqoa+KSeuE30b+f07q620w4+e+BB K3gCJ1zQ4PrThxm1YT1H7LgEHyyFBA4QOdcQg0VG5d8eJUuYB1KnmHvPj8Y/JUnw+KMP kjR57jHEJneLLTBBzUcx9timiqQa2jcSqrIXz6nzAJqMKCkNYq29Ac7rUXNmOX0JnZ0B Y9/zFlk0k2lPdYvB1S1oGghdLONyZyp2CyLyifpgiCSw63GoyiJDUoPuwECgshEcJd7n xyL6NiYfUBHaK+EhGEO33oM9OwdMCqqNQ4J8+VdavkwFxkJEsmzBvlshGSnqHCkebkcB 63EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P43rC0ox; 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 y2si2375132ede.379.2020.10.06.07.07.43; Tue, 06 Oct 2020 07:08:06 -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=P43rC0ox; 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 S1726903AbgJFOFt (ORCPT + 99 others); Tue, 6 Oct 2020 10:05:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:33604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbgJFOD4 (ORCPT ); Tue, 6 Oct 2020 10:03:56 -0400 Received: from mail.kernel.org (ip5f5ad5bd.dynamic.kabel-deutschland.de [95.90.213.189]) (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 9B06220782; Tue, 6 Oct 2020 14:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601993034; bh=gircHDTmaOYdmAjX4GqQkC9md45Fenmq59SXCI2xF+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P43rC0oxS07LbUeeQmaLgln41Qmgp89dgMe/2hM2ZjJfDoyj9F92TVJXAmGcdPzi4 9f+HsAFWPmgxXo7547lVVP/7Zd4Ky9+QS83yHN+TQcBgs8GTrG5Zv/rlSsxmjBVo8i HjjRef17FP76W3CqOeTgYffO6jz7nkOsaRik+kOU= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kPnZI-0019G5-I3; Tue, 06 Oct 2020 16:03:52 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Rafael J. Wysocki" , Alan Stern , Alex Deucher , Bjorn Helgaas , linux-kernel@vger.kernel.org Subject: [PATCH v5 36/52] docs: devices.rst: get rid of :c:type macros Date: Tue, 6 Oct 2020 16:03:33 +0200 Message-Id: <3e4b8d8c35dd2c0f3104d1ccd76b9b9698b31084.1601992016.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