diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-03-01 14:47:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 11:25:39 +0300 |
commit | bb630aaad7d62600821897abdbb8207d2ba451b2 (patch) | |
tree | d58ab98106e1a4f24a2bc4856db3700b6e49aca0 | |
parent | 44c2909c48c0c2cb999b517d298e6e6ef566a15a (diff) | |
download | linux-bb630aaad7d62600821897abdbb8207d2ba451b2.tar.xz |
usb: gadget: f_acm: Fix configfs attr name
commit 0561f77e2db9e72dc32e4f82b56fca8ba6b31171 upstream.
Correct attribute name is port_num not num.
Fixes: ea6bd6b ("usb-gadget/f_acm: use per-attribute show and store methods")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/gadget/function/f_acm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_acm.c b/drivers/usb/gadget/function/f_acm.c index 67e474b13fca..670a89f197cd 100644 --- a/drivers/usb/gadget/function/f_acm.c +++ b/drivers/usb/gadget/function/f_acm.c @@ -779,10 +779,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[] = { - &f_acm_port_attr_num, + &f_acm_attr_port_num, NULL, }; |