Re: [PATCH] usb: gadget: f_acm: Fix configfs attr name

2016-03-01 Thread Christoph Hellwig
On Tue, Mar 01, 2016 at 12:47:11PM +0100, Krzysztof Opasiak wrote:
> Correct attribute name is port_num not num.
> 
> Signed-off-by: Krzysztof Opasiak 
> Fixes: ea6bd6b ("usb-gadget/f_acm: use per-attribute show and store methods")

My fault, sorry.

Reviewed-by: Christoph Hellwig 
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] usb: gadget: f_acm: Fix configfs attr name

2016-03-01 Thread Krzysztof Opasiak
Correct attribute name is port_num not num.

Signed-off-by: Krzysztof Opasiak 
Fixes: ea6bd6b ("usb-gadget/f_acm: use per-attribute show and store methods")
---
 drivers/usb/gadget/function/f_acm.c |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/gadget/function/f_acm.c 
b/drivers/usb/gadget/function/f_acm.c
index 2fa1e80..3df4c72 100644
--- a/drivers/usb/gadget/function/f_acm.c
+++ b/drivers/usb/gadget/function/f_acm.c
@@ -777,10 +777,10 @@ static ssize_t f_acm_port_num_show(struct config_item 
*item, char *page)
return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num);
 }
 
-CONFIGFS_ATTR_RO(f_acm_port_, num);
+CONFIGFS_ATTR_RO(f_acm_, port_num);
 
 static struct configfs_attribute *acm_attrs[] = {
-   _acm_port_attr_num,
+   _acm_attr_port_num,
NULL,
 };
 
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html