Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp422687imu; Fri, 21 Dec 2018 01:14:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN5sq2MWpFqH3rq1BihEKrLJLlKZCabGHhI5RQqK+fJNfk4peKKyrFHYtaWKkGnyNAtiBZot X-Received: by 2002:a17:902:74cc:: with SMTP id f12mr1743320plt.134.1545383643849; Fri, 21 Dec 2018 01:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545383643; cv=none; d=google.com; s=arc-20160816; b=kC1MtHchXOCqiASIGjwCl6mjDUV8eHD9ngO2klP5KNd8zkYeJ/gApU0mz7J0rboWb3 3mSvO7dJIvV/Mmf3+EoEzpUjKvfRCzfxNLQrJLrDROriKGwLCC1KpsVF91bHNzeQXETL QzKgvoBGdmZJS8lQ1iX0B9oYPlTnKgOlYpx1Ipde+zmEx2b7ruqZTWFHaWotnXa28jFr N7KIqfjBn+8jcbtN+9z6FhUJWM/HXLIys3DCB+/ftalZiYAsMiDDmAo459Gj3hskl55F e2R+MoXJVOezbK68pp2OpaFllJ2hCB91WJZp06Fh0nedN1+FXuTmLvR8vwsLEtJWVw5A qYVw== 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=cmXSKtwotk+15WAPymQPHcGbI501aOyBzfZhMLyqApY=; b=sHddNhuIRh8eVJhDlAaox5f+wns6Y9P5tZvcohGsJluYUm3K0VfIsn1Ak8txRkTEYZ UDiiBrwbkQLl6k4T5/bvxEQ2yxw276F2+c6IZc7KFKN00RQjsEjy+JcV0zKPm0NTYSkb oNQvx3U2WF2FmtNuKd/NcV2OtYnYIMnlLdWLGDnlqq3kmKAIeXVGh/oE2siq8X9uNR70 +m4G3uPtiW43e4shj6vRgxppJAkvCTM9O0ASpNySvd6qn44JC9HXwZYQRXBDSn9kIJQb KxTV4Cy0T4Ehmi9bKRUZ8NrT5MI1SQZUTzmnsL1nLCn/fOuTHP7C9vgICCmobX2xeaJm GPnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="qn/Mg2xa"; 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 m30si22579843pff.158.2018.12.21.01.13.47; Fri, 21 Dec 2018 01:14:03 -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="qn/Mg2xa"; 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 S2387515AbeLUHzT (ORCPT + 99 others); Fri, 21 Dec 2018 02:55:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:59612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730539AbeLUHzR (ORCPT ); Fri, 21 Dec 2018 02:55:17 -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 D01CE21908; Fri, 21 Dec 2018 07:55:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545378917; bh=QI9QzemGCZuiQ0yVS6Op/Kfzd4d/q4rBU/EK3EOMQjs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qn/Mg2xavPOz+q9SCQ3FBCg68z91B8mMdDSzSgBnBiHSQQLe1acLE8IehDw51nYqQ z/3dmuSNMgYNqL1m0zOxQ2jzzM5m17f7bLHi57TtNzQRUsZ5UQUNYzBHwQyhHvJ7L5 Y/piUFPK3wgXqPVERdyaVa1vmD0jAgjFW7YuNcVE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: [PATCH 10/10] driver core: remove BUS_ATTR() Date: Fri, 21 Dec 2018 08:54:42 +0100 Message-Id: <20181221075442.17109-11-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 There are now no in-kernel users of BUS_ATTR() so drop it from device.h Everyone should use BUS_ATTR_RO/RW/WO() from now on. Cc: "Rafael J. Wysocki" Signed-off-by: Greg Kroah-Hartman --- include/linux/device.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/device.h b/include/linux/device.h index 1b25c7a43f4c..1e8ae731fb97 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -49,8 +49,6 @@ struct bus_attribute { ssize_t (*store)(struct bus_type *bus, const char *buf, size_t count); }; -#define BUS_ATTR(_name, _mode, _show, _store) \ - struct bus_attribute bus_attr_##_name = __ATTR(_name, _mode, _show, _store) #define BUS_ATTR_RW(_name) \ struct bus_attribute bus_attr_##_name = __ATTR_RW(_name) #define BUS_ATTR_RO(_name) \ -- 2.20.1