Port from (CR) Fix up the ttydiag driver to work with the rearchitected diag core. Stub the usb_diag driver with tty diag API's when factory mode is enabled. This is done for easy portability/upgrades/maintenance. Enable DIAG_OVER_TTY to enable the ttydiag driver. Change-Id: Ia3416e3230f2e0541195aac791b3efac30362016 Signed-off-by: Ravi Vembu <raviv@motorola.com> Reviewed-on: http://gerrit.mot.com/677438 SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com> Reviewed-on: http://gerrit.mot.com/782600 SME-Granted: SME Approvals Granted Conflicts: drivers/usb/gadget/function/f_diag.c Change-Id: I238c345020b28164edd7fdc4b121b18e440eed80 Reviewed-on: https://gerrit.mot.com/901861 SLTApproved: Slta Waiver <sltawvr@motorola.com> SME-Granted: SME Approvals Granted Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Ravikumar Vembu <raviv@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com>