Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp421598imu; Fri, 21 Dec 2018 01:12:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN7uKfUvFqXkdsgVw+u/1Cp15x0fZyA+woC8AiM61P9XNklppgTv/b9+RIuf3ZDDwYwNmuPY X-Received: by 2002:a63:4c5:: with SMTP id 188mr1604984pge.391.1545383566842; Fri, 21 Dec 2018 01:12:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545383566; cv=none; d=google.com; s=arc-20160816; b=dAZu7JyAYtpRLi68MxwcdCJ/fmj7GmQOBUboB5HGsiGLneixH5g0jR6lJvM4/5lHFa CN9K1qCed71pK1iMBfNUxsoFRKrDLvPZ2hpFnoRMzJpQJQezIbDvEiLvNl7BONIomzgT nNk+Nx9hmkxm+g8uSc3VLIvsfeS1PUe3WGxrctjKNCAq5irA2Ic2sriAuAMvyvcrAV/D rkH2N5JuG/OVYe/qThr5/dtkvtaUJlJYm/MrcDkznkdKykhSWrJXmIXYBCcVSas2NUaY vvBLZ67+edrW7OttcWHe8mixaiYJU7g09ku0BmABmKVYdm3ef8B8uyaeN2hcvqT4uZl7 BUrg== 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=1mYovAOBDBP2GMPtVD14EMYIk98y903/nt1eHzsKyis=; b=EeNE/NXuXPOflFxvdUf1aP40vGIBJMRKFz1aWm4mgdh6ETBiGDE3qSpTH6sVqcLwRA XFSoTLbnilFF0oXBD5yJn/7AMJGIN4hnLBuDb1qJ1OSv7i1plFy5qx5rSj4MaRxgCvcr CZcreEhVJvcbxpL+qsDF/Uj9PmxJ7Shy+pMwiJDQKJ/Bq81j1ILELdnXZwuviAYUBJj5 ipqo4QQbjy3O7NoivAAciaoYIwSnEefZlK1d3kdEOq9pkLnZQyTFJfIl/V3cJcPo/d1x sPeDExrFszKqvO4w6BhGo652q38zK/XYT9WPZEtBRCIUGuqyO1aNxXl12IiDUuPAYQdA CGfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A0Xph9eo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h67si21966291pfb.146.2018.12.21.01.12.31; Fri, 21 Dec 2018 01:12:46 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b=A0Xph9eo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733214AbeLUHzN (ORCPT + 99 others); Fri, 21 Dec 2018 02:55:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:59514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730539AbeLUHzM (ORCPT ); Fri, 21 Dec 2018 02:55:12 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 8122321908; Fri, 21 Dec 2018 07:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545378911; bh=zG6uJLl6gi0R7ZQZJVG4gL/fedY3fZXjBR2w/yWAFts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A0Xph9eoREmKXrEKrXzcKmDLVh8wvrGaUpTEy/Sh1Wx1TzVprslwlI2byOvoTEgvB yaafMaQiXAb0aIYdozsk3FeVc3tyDr4hBV2UASwtGtvZ4psBT0WT+srcvY4hXZrv/4 0y0loeXQVSG4PhwIaxs3vHcQ2dYSz9IAQ9VfvJNE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: [PATCH 08/10] Documentation: driver core: remove use of BUS_ATTR Date: Fri, 21 Dec 2018 08:54:40 +0100 Message-Id: <20181221075442.17109-9-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181221075442.17109-1-gregkh@linuxfoundation.org> References: <20181221075442.17109-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are getting rid of the "raw" BUS_ATTR() macro, so fix up the documentation to not refer to it anymore. Cc: "Rafael J. Wysocki" Signed-off-by: Greg Kroah-Hartman --- Documentation/driver-model/bus.txt | 8 ++++---- Documentation/filesystems/sysfs.txt | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/driver-model/bus.txt b/Documentation/driver-model/bus.txt index b577a45b93ea..c247b488a567 100644 --- a/Documentation/driver-model/bus.txt +++ b/Documentation/driver-model/bus.txt @@ -124,11 +124,11 @@ struct bus_attribute { ssize_t (*store)(struct bus_type *, const char * buf, size_t count); }; -Bus drivers can export attributes using the BUS_ATTR macro that works -similarly to the DEVICE_ATTR macro for devices. For example, a definition -like this: +Bus drivers can export attributes using the BUS_ATTR_RW macro that works +similarly to the DEVICE_ATTR_RW macro for devices. For example, a +definition like this: -static BUS_ATTR(debug,0644,show_debug,store_debug); +static BUS_ATTR_RW(debug); is equivalent to declaring: diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt index a1426cabcef1..41411b0c60a3 100644 --- a/Documentation/filesystems/sysfs.txt +++ b/Documentation/filesystems/sysfs.txt @@ -344,7 +344,9 @@ struct bus_attribute { Declaring: -BUS_ATTR(_name, _mode, _show, _store) +static BUS_ATTR_RW(name); +static BUS_ATTR_RO(name); +static BUS_ATTR_WO(name); Creation/Removal: -- 2.20.1