Skip to content

Commit 0561f77

Browse files
kopasiakfelipebalbi
authored andcommitted
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>
1 parent 59e0527 commit 0561f77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/gadget/function/f_acm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ static ssize_t f_acm_port_num_show(struct config_item *item, char *page)
777777
return sprintf(page, "%u\n", to_f_serial_opts(item)->port_num);
778778
}
779779

780-
CONFIGFS_ATTR_RO(f_acm_port_, num);
780+
CONFIGFS_ATTR_RO(f_acm_, port_num);
781781

782782
static struct configfs_attribute *acm_attrs[] = {
783-
&f_acm_port_attr_num,
783+
&f_acm_attr_port_num,
784784
NULL,
785785
};
786786

0 commit comments

Comments
 (0)