Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4029999yba; Tue, 23 Apr 2019 13:52:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzetOn1L0dedZkDEQ9WUm3MTE/n9NOSPUVJ+t7hqUu1U+XxCI39X2yt+rY9NEDBmfA2uQLx X-Received: by 2002:a17:902:1c1:: with SMTP id b59mr28690985plb.182.1556052764876; Tue, 23 Apr 2019 13:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556052764; cv=none; d=google.com; s=arc-20160816; b=l9sgM0s8jQACltckmV/Yu4taaXMPgEOl28+UoUfvnbRZdZExslIG0QbtQKU0UzP5Lz cJ6Feg6C5KSkiZH3KONz/fTCJ8n+pRVt2ppkM1VC+nzWIz/EqwqNUF5w2minQQ8s9wsi 3cp81/dbEXv39KiDLgq6HMMNxZaarN6WW7OtNqwCOLUOk0hDUnTpBZ1bzyfgvyj9tGBE yXiUg+S/JuYQnG8iXpxIDMfgLZVRrw6VImwBbtapi2ESls7BqY3HqxdKBrICh4nsmjmu BUs/KjPGRIYKDF66tqJCPWdX2d12fGYtEy97qymm5motKBZTPhm7T2XRsW6hzM9UW8Qv 82Pw== 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:subject:cc:to:from:date :dkim-signature; bh=botNWw+S6WKNaF5EjthcNKSjg632PnN3Uy2HYxc3wPA=; b=FKt3LlGMD7TF0jtt3d+NIKx2BVG+5/EFKL9vIaWNcqocsoMreTLNrk+nwp8gsbkcb/ 3b+5qjz4Z4RZlYFLt1lCOISIGcmeI3ERVWrTDtbRuil/q4w2vsgq53Lc0xXINtjXvG7I TE7T9dWX+CNrA5hlQ7iL/zCXWUzfK5cxbywEOUeFKXXi1jj3IOFMP+zRyRyoZ8w/VDDX 5O7muGTp/YfP5kHLRSohVHnicp1nbrMLch00iTmOBNlQ9xVtWWzwTpi574Z1B3bn2MHy bJGPhacc7SCChRgr0RjS+9Uwn94+3HZvIBqGYRh4HvOqYY1w0ovEyfrUIW6jeEqpA30x x+dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=CTck0YaL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h125si15989380pgc.290.2019.04.23.13.52.29; Tue, 23 Apr 2019 13:52:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=CTck0YaL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727650AbfDWUvk (ORCPT + 99 others); Tue, 23 Apr 2019 16:51:40 -0400 Received: from casper.infradead.org ([85.118.1.10]:36528 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfDWUvk (ORCPT ); Tue, 23 Apr 2019 16:51:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=botNWw+S6WKNaF5EjthcNKSjg632PnN3Uy2HYxc3wPA=; b=CTck0YaL1r+YPoCW5SnYRwPRZE EdhdJ4h/X6url55E0KWe1cVQLTAu3hjJymDbKezivT1iJx1mi2krfCklOaECgEJs9IzXktpo8Ppqv U5/EZsfQqI0bYvLjJEsG0tppCM+HDeCRtB2514IRwFYM5UYOZgpR9lsMUakxETPGK0VMfUyVBnEqC 9zzY1NG73hRfHVIJLvudBqPj65PI+dAtaxo3ZWcKU1Nmmzrh9XCMA0Kg2V0rPbNGJlR59GliXkzby MGjeNyj9V0iujQJ2x1/2oCaKXFicCvf2zgWjk+wp4Ck5QbPwEVCnQyCPW/SexpZYIhX5UrEPczC1t gZet/2oQ==; Received: from 177.17.136.231.dynamic.adsl.gvt.net.br ([177.17.136.231] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJ2O8-0002uX-2K; Tue, 23 Apr 2019 20:51:36 +0000 Date: Tue, 23 Apr 2019 17:51:29 -0300 From: Mauro Carvalho Chehab To: Changbin Du Cc: Jonathan Corbet , Bjorn Helgaas , rjw@rjwysocki.net, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, fenghua.yu@intel.com, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v4 06/63] Documentation: ACPI: move scan_handlers.txt to driver-api/acpi and convert to reST Message-ID: <20190423175129.03f74a4b@coco.lan> In-Reply-To: <20190423162932.21428-7-changbin.du@gmail.com> References: <20190423162932.21428-1-changbin.du@gmail.com> <20190423162932.21428-7-changbin.du@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 24 Apr 2019 00:28:35 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du For the conversion itself: Reviewed-by: Mauro Carvalho Chehab > --- > Documentation/driver-api/acpi/index.rst | 1 + > .../acpi/scan_handlers.rst} | 24 ++++++++++++------- > 2 files changed, 16 insertions(+), 9 deletions(-) > rename Documentation/{acpi/scan_handlers.txt => driver-api/acpi/scan_handlers.rst} (90%) > > diff --git a/Documentation/driver-api/acpi/index.rst b/Documentation/driver-api/acpi/index.rst > index 12649947b19b..ace0008e54c2 100644 > --- a/Documentation/driver-api/acpi/index.rst > +++ b/Documentation/driver-api/acpi/index.rst > @@ -6,3 +6,4 @@ ACPI Support > :maxdepth: 2 > > linuxized-acpica > + scan_handlers > diff --git a/Documentation/acpi/scan_handlers.txt b/Documentation/driver-api/acpi/scan_handlers.rst > similarity index 90% > rename from Documentation/acpi/scan_handlers.txt > rename to Documentation/driver-api/acpi/scan_handlers.rst > index 3246ccf15992..7a197b3a33fc 100644 > --- a/Documentation/acpi/scan_handlers.txt > +++ b/Documentation/driver-api/acpi/scan_handlers.rst > @@ -1,7 +1,13 @@ > +.. SPDX-License-Identifier: GPL-2.0 > +.. include:: > + > +================== > ACPI Scan Handlers > +================== > + > +:Copyright: |copy| 2012, Intel Corporation > > -Copyright (C) 2012, Intel Corporation > -Author: Rafael J. Wysocki > +:Author: Rafael J. Wysocki > > During system initialization and ACPI-based device hot-add, the ACPI namespace > is scanned in search of device objects that generally represent various pieces > @@ -30,14 +36,14 @@ to configure that link so that the kernel can use it. > Those additional configuration tasks usually depend on the type of the hardware > component represented by the given device node which can be determined on the > basis of the device node's hardware ID (HID). They are performed by objects > -called ACPI scan handlers represented by the following structure: > +called ACPI scan handlers represented by the following structure:: > > -struct acpi_scan_handler { > - const struct acpi_device_id *ids; > - struct list_head list_node; > - int (*attach)(struct acpi_device *dev, const struct acpi_device_id *id); > - void (*detach)(struct acpi_device *dev); > -}; > + struct acpi_scan_handler { > + const struct acpi_device_id *ids; > + struct list_head list_node; > + int (*attach)(struct acpi_device *dev, const struct acpi_device_id *id); > + void (*detach)(struct acpi_device *dev); > + }; > > where ids is the list of IDs of device nodes the given handler is supposed to > take care of, list_node is the hook to the global list of ACPI scan handlers Thanks, Mauro