Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp900078imu; Fri, 21 Dec 2018 09:08:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN7CRqAHX6pn0WDsrFGTX0p8a9uHpWu76LiS7QlwSIArV/Lz0r26+QHrQxoPakTd76X5XHeo X-Received: by 2002:a17:902:2ec1:: with SMTP id r59mr3382291plb.254.1545412106834; Fri, 21 Dec 2018 09:08:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545412106; cv=none; d=google.com; s=arc-20160816; b=fwm1S0xcWetDGVaqbY+VvPaQV+Y8Jm3sR63Yfj52yfdJxRQDNiA2/3oxRE9mT6HzEi NVi4YPHiPSExKn1pyLfMaQ3e3njm74UcZXvL+F6xCc7FSCM5tpYkR2+jZ6BdjJvr5HCF YWOY6/uRRmZF7dKS5gCXX3GdoDd4ijRD2SqEIGxscFJHRH/FOBSiVZX4Mzl/jA8JLmGj EgtNmG75W4IRy91puTI3qP1/cdGNbYepcDMt0JjtfBwZLS6DIG4Sk9XwWNbVKUZwMs1x EBSWN6RpcolbKlTZ9QivMUvG1mEdwJ8er5pX+8GJU/e8R40W3phG2Jgtj8FbOfRJPkF0 DNdw== 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=biLV26pfshl5bCA/EGWmoqD2i8c3BTgvhg5nnqRZ1q8=; b=Rr7i6O0Y4dsaDGbYshw/7qRY8V2+aLbPWbMKcv2AYm6Z0F/XQmmoftAwIRO9OZjqrI VErVtZm9zUsoHq/ZsBF5M0Vs+jGQinibgsDtXg9PEKyJ2RMxp/KVF/tx5gki3aH81dHH krCtYXViOKVmi52kOUyVTEjoBo9JURz768CStVVslTNawci5Ta5NUOjLinUiRkgP0ww/ 6m2TIYmpmjpWI485An7vE9m0W+5bqyQmDMQaA2ZP4tUQLrSxuPHj5V6h8gZ+OHWfzNXp 0x+36AbEaGOu+7OTUjvM1imW11vq6wGVJ6uSSq7ot5sjcfiiWBzOOB7GNA/sC5sSo0OG lTuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cZRUviD8; 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 q66si21596488pfb.231.2018.12.21.09.08.11; Fri, 21 Dec 2018 09:08:26 -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=cZRUviD8; 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 S1732996AbeLUHzI (ORCPT + 99 others); Fri, 21 Dec 2018 02:55:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:59388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732849AbeLUHzE (ORCPT ); Fri, 21 Dec 2018 02:55:04 -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 824ED21907; Fri, 21 Dec 2018 07:55:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545378904; bh=YuSmsb1MKiy+xRvayHN/eGCi5cSU2isKBnRZaWKgI4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cZRUviD8X2bO5B5x9jHoSDEHwrApIhGWxahON4R/RCBu06zxeWA2u5sjf0Xgf7peS YQEKSADG/fv4b0EJvX/SBWqaI9XOMDvbglFDlwIix6Xw89Qi6JbeeGcDOLZ/LnZEkk Hm1qBcD/RnxA6rLIfZYHea1gBs4xR+1Md7eWQILg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Matt Porter , Alexandre Bounine Subject: [PATCH 05/10] rapidio: rio-sysfs.c: convert to use BUS_ATTR_WO Date: Fri, 21 Dec 2018 08:54:37 +0100 Message-Id: <20181221075442.17109-6-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 trying to get rid of BUS_ATTR() and the usage of that in rio-sysfs.c can be trivially converted to use BUS_ATTR_WO(), so use that instead. Cc: Matt Porter Cc: Alexandre Bounine Signed-off-by: Greg Kroah-Hartman --- drivers/rapidio/rio-sysfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c index 73e4b407f162..ad5e303dda05 100644 --- a/drivers/rapidio/rio-sysfs.c +++ b/drivers/rapidio/rio-sysfs.c @@ -290,8 +290,7 @@ const struct attribute_group *rio_dev_groups[] = { NULL, }; -static ssize_t bus_scan_store(struct bus_type *bus, const char *buf, - size_t count) +static ssize_t scan_store(struct bus_type *bus, const char *buf, size_t count) { long val; int rc; @@ -314,7 +313,7 @@ static ssize_t bus_scan_store(struct bus_type *bus, const char *buf, return rc; } -static BUS_ATTR(scan, (S_IWUSR|S_IWGRP), NULL, bus_scan_store); +static BUS_ATTR_WO(scan); static struct attribute *rio_bus_attrs[] = { &bus_attr_scan.attr, -- 2.20.1