aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>2012-02-04 12:55:26 -0500
committerFelipe Balbi <balbi@ti.com>2012-05-04 08:53:02 -0400
commit504d14c4657e920927178fcb8d070f55f5d4eb66 (patch)
treecea8c17b2f153ce7fe35edba9fd317578fd55fc4
parentd77c1198666d87a9b21e9594ca29ac7e42011623 (diff)
usb: gadget: fsl_qe_udc: remove not implemented callbacks
All of this callbacks which I remove here are not implemented and return an error code. The gadget code returns an error code if a callback is missing so there is no need to implement this twice. Cc: Li Yang <leoli@freescale.com> Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/fsl_qe_udc.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c
index aae6e98594c9..51881f3bd07a 100644
--- a/drivers/usb/gadget/fsl_qe_udc.c
+++ b/drivers/usb/gadget/fsl_qe_udc.c
@@ -1888,43 +1888,6 @@ static int qe_get_frame(struct usb_gadget *gadget)
1888 return (int)tmp; 1888 return (int)tmp;
1889} 1889}
1890 1890
1891/* Tries to wake up the host connected to this gadget
1892 *
1893 * Return : 0-success
1894 * Negative-this feature not enabled by host or not supported by device hw
1895 */
1896static int qe_wakeup(struct usb_gadget *gadget)
1897{
1898 return -ENOTSUPP;
1899}
1900
1901/* Notify controller that VBUS is powered, Called by whatever
1902 detects VBUS sessions */
1903static int qe_vbus_session(struct usb_gadget *gadget, int is_active)
1904{
1905 return -ENOTSUPP;
1906}
1907
1908/* constrain controller's VBUS power usage
1909 * This call is used by gadget drivers during SET_CONFIGURATION calls,
1910 * reporting how much power the device may consume. For example, this
1911 * could affect how quickly batteries are recharged.
1912 *
1913 * Returns zero on success, else negative errno.
1914 */
1915static int qe_vbus_draw(struct usb_gadget *gadget, unsigned mA)
1916{
1917 return -ENOTSUPP;
1918}
1919
1920/* Change Data+ pullup status
1921 * this func is used by usb_gadget_connect/disconnect
1922 */
1923static int qe_pullup(struct usb_gadget *gadget, int is_on)
1924{
1925 return -ENOTSUPP;
1926}
1927
1928static int fsl_qe_start(struct usb_gadget *gadget, 1891static int fsl_qe_start(struct usb_gadget *gadget,
1929 struct usb_gadget_driver *driver); 1892 struct usb_gadget_driver *driver);
1930static int fsl_qe_stop(struct usb_gadget *gadget, 1893static int fsl_qe_stop(struct usb_gadget *gadget,
@@ -1933,11 +1896,6 @@ static int fsl_qe_stop(struct usb_gadget *gadget,
1933/* defined in usb_gadget.h */ 1896/* defined in usb_gadget.h */
1934static struct usb_gadget_ops qe_gadget_ops = { 1897static struct usb_gadget_ops qe_gadget_ops = {
1935 .get_frame = qe_get_frame, 1898 .get_frame = qe_get_frame,
1936 .wakeup = qe_wakeup,
1937/* .set_selfpowered = qe_set_selfpowered,*/ /* always selfpowered */
1938 .vbus_session = qe_vbus_session,
1939 .vbus_draw = qe_vbus_draw,
1940 .pullup = qe_pullup,
1941 .udc_start = fsl_qe_start, 1899 .udc_start = fsl_qe_start,
1942 .udc_stop = fsl_qe_stop, 1900 .udc_stop = fsl_qe_stop,
1943}; 1901};