X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fusb%2Fgadget%2Ff_dfu.h;h=a2565774e1c5eddf739fbbfc2767aff8ea8f7f81;hb=00e9d69629eb026a2ccc9e2526e365b1e796a14d;hp=023e1adacc3c321b5816ab612169f6344d5d7d43;hpb=8f082d78fafd94db3f21b503794e0875d3331e53;p=u-boot diff --git a/drivers/usb/gadget/f_dfu.h b/drivers/usb/gadget/f_dfu.h index 023e1adacc..a2565774e1 100644 --- a/drivers/usb/gadget/f_dfu.h +++ b/drivers/usb/gadget/f_dfu.h @@ -4,19 +4,7 @@ * Copyright (C) 2011-2012 Samsung Electronics * author: Andrzej Pietrasiewicz * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __F_DFU_H_ @@ -63,7 +51,6 @@ #define RET_STALL -1 #define RET_ZLP 0 -#define RET_STAT_LEN 6 enum dfu_state { DFU_STATE_appIDLE = 0, @@ -95,6 +82,5 @@ struct dfu_function_descriptor { __le16 bcdDFUVersion; } __packed; -/* configuration-specific linkup */ -int dfu_add(struct usb_configuration *c); +#define DFU_POLL_TIMEOUT_MASK (0xFFFFFFUL) #endif /* __F_DFU_H_ */