Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751811AbdFIPvV (ORCPT ); Fri, 9 Jun 2017 11:51:21 -0400 Received: from resqmta-po-09v.sys.comcast.net ([96.114.154.168]:42658 "EHLO resqmta-po-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751534AbdFIPvT (ORCPT ); Fri, 9 Jun 2017 11:51:19 -0400 Reply-To: shuah@kernel.org Subject: Re: [PATCH 11/11] USB: usbip: convert to use DRIVER_ATTR_RW To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Valentina Manea , linux-usb@vger.kernel.org, Shuah Khan References: <20170609090314.13991-1-gregkh@linuxfoundation.org> <20170609090314.13991-11-gregkh@linuxfoundation.org> From: Shuah Khan Message-ID: <8accd02c-0784-9afe-f250-68ceb1ec90ae@kernel.org> Date: Fri, 9 Jun 2017 09:51:17 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170609090314.13991-11-gregkh@linuxfoundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfM0MVbknt6Zknaw0bE7IiOAf2RVi/iwAPZF3MCUoLWKCycHozaCJZFBagOVH8pU1UKhK/oUeNYC4msAmX8LVPjugLbuktEFYH2clZhP9ulTcVBK1OyUt 8apbMbl4k07DCUOaNdebJbY5ap+sDmSigEjC1a4KXyoHdSAPDS3NCeHQ/T+2MOTHC8E1j4hehlBJh6zAYT6CwhkquS11mY+x4utEUUktSftpuwlkRFvPHPfM VxMurUBDx1LrzjRB74e/chbyxwh0l/R+RxKZ1eJ5U0LZJsDy5QiVDYrtLXNLznpgVl0xb/iKjVO9m+G72JsIRY0xwF7QsdojP8earx4j3VE= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1711 Lines: 53 On 06/09/2017 03:03 AM, Greg Kroah-Hartman wrote: > We are trying to get rid of DRIVER_ATTR(), and the usbip driver > attribute can be trivially changed to use DRIVER_ATTR_RW(). > > Cc: Valentina Manea > Cc: Shuah Khan > Cc: > Signed-off-by: Greg Kroah-Hartman Looks good to me. Acked-by: Shuah Khan thanks, -- Shuah > --- > drivers/usb/usbip/stub_main.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/usbip/stub_main.c b/drivers/usb/usbip/stub_main.c > index 44ab43fc4fcc..e74fbb7f4a32 100644 > --- a/drivers/usb/usbip/stub_main.c > +++ b/drivers/usb/usbip/stub_main.c > @@ -134,7 +134,7 @@ int del_match_busid(char *busid) > return ret; > } > > -static ssize_t show_match_busid(struct device_driver *drv, char *buf) > +static ssize_t match_busid_show(struct device_driver *drv, char *buf) > { > int i; > char *out = buf; > @@ -149,7 +149,7 @@ static ssize_t show_match_busid(struct device_driver *drv, char *buf) > return out - buf; > } > > -static ssize_t store_match_busid(struct device_driver *dev, const char *buf, > +static ssize_t match_busid_store(struct device_driver *dev, const char *buf, > size_t count) > { > int len; > @@ -181,8 +181,7 @@ static ssize_t store_match_busid(struct device_driver *dev, const char *buf, > > return -EINVAL; > } > -static DRIVER_ATTR(match_busid, S_IRUSR | S_IWUSR, show_match_busid, > - store_match_busid); > +static DRIVER_ATTR_RW(match_busid); > > static ssize_t rebind_store(struct device_driver *dev, const char *buf, > size_t count) >