]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gr_udc: remove dentry storage for debugfs file
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 10:14:26 +0000 (12:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Jun 2021 14:41:00 +0000 (16:41 +0200)
commit92904119d6ac8c1903fbd5709896f01dd69a3fbf
tree22204f37857b6b5d094f00a3193ece20807a43fd
parente7f3f456870dbe1e0e981b5b78483d418f6f6c3c
USB: gr_udc: remove dentry storage for debugfs file

There is no need to store the dentry pointer for a debugfs file that we
only use to remove it when the device goes away.  debugfs can do the
lookup for us instead, saving us some trouble, and making things smaller
overall.

Cc: Felipe Balbi <balbi@kernel.org>
Link: https://lore.kernel.org/r/20210527101426.3283214-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/gr_udc.c
drivers/usb/gadget/udc/gr_udc.h