Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: f_acm: Fix configfs attr name

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>

authored by

Krzysztof Opasiak and committed by
Felipe Balbi
0561f77e 59e05272

+2 -2
+2 -2
drivers/usb/gadget/function/f_acm.c
··· 777 777 return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num); 778 778 } 779 779 780 - CONFIGFS_ATTR_RO(f_acm_port_, num); 780 + CONFIGFS_ATTR_RO(f_acm_, port_num); 781 781 782 782 static struct configfs_attribute *acm_attrs[] = { 783 - &f_acm_port_attr_num, 783 + &f_acm_attr_port_num, 784 784 NULL, 785 785 }; 786 786