aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Deacon2020-12-15 07:39:54 -0600
committerGiuliano Procida2020-12-30 04:20:46 -0600
commit807b7569505b4050baf3842253f3ea7292ab8dff (patch)
treeb5dc94668b0021925eedfc4f129c12ebc56cd787
parent372f5972b14c1acbc11f8e76da4090a247f2e015 (diff)
downloadkernel-807b7569505b4050baf3842253f3ea7292ab8dff.tar.gz
kernel-807b7569505b4050baf3842253f3ea7292ab8dff.tar.xz
kernel-807b7569505b4050baf3842253f3ea7292ab8dff.zip
ANDROID: usb: f_accessory: Remove stale comments
Neither acc_gadget_bind() nor acc_gadget_register_driver() exist, so remove the stale comments that refer to them. Bug: 173789633 Signed-off-by: Will Deacon <willdeacon@google.com> Change-Id: If396ba3bcac3ca59c48e5a5faa0a8520534ed625 Signed-off-by: Giuliano Procida <gprocida@google.com>
-rw-r--r--drivers/usb/gadget/function/f_accessory.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c
index 32efcf2e59c4..783d9cd0af9c 100644
--- a/drivers/usb/gadget/function/f_accessory.c
+++ b/drivers/usb/gadget/function/f_accessory.c
@@ -274,7 +274,6 @@ static struct usb_gadget_strings *acc_strings[] = {
274 NULL, 274 NULL,
275}; 275};
276 276
277/* temporary variable used between acc_open() and acc_gadget_bind() */
278static struct acc_dev *_acc_dev; 277static struct acc_dev *_acc_dev;
279 278
280struct acc_instance { 279struct acc_instance {
@@ -1317,7 +1316,6 @@ static int acc_setup(void)
1317 INIT_WORK(&dev->getprotocol_work, acc_getprotocol_work); 1316 INIT_WORK(&dev->getprotocol_work, acc_getprotocol_work);
1318 INIT_WORK(&dev->sendstring_work, acc_sendstring_work); 1317 INIT_WORK(&dev->sendstring_work, acc_sendstring_work);
1319 1318
1320 /* _acc_dev must be set before calling usb_gadget_register_driver */
1321 _acc_dev = dev; 1319 _acc_dev = dev;
1322 1320
1323 ret = misc_register(&acc_device); 1321 ret = misc_register(&acc_device);