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)
commit425de3182c91b467f1fc8a0de841d74d866719ca
tree22204f37857b6b5d094f00a3193ece20807a43fd
parent7f7d0afe1d479990b712ecb494257dcd706a8016
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