DM USB: move the UREQ macro into common header

move the UREQ macro from usb_mouse.c to usb.h

Change-Id: I977cf73291610b0448eb031a500788a397b55f88
Signed-off-by: Wu, Xiaoguang <xiaoguang.wu@intel.com>
Reviewed-by: Shuo Liu <shuo.a.liu@intel.com>
Reviewed-by: Yu Wang <yu1.wang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Wu, Xiaoguang 2018-04-19 21:45:36 +08:00 committed by lijinxia
parent 17d4e9a995
commit 2d1fb7e480
2 changed files with 1 additions and 2 deletions

View File

@ -310,8 +310,6 @@ umouse_init(void *pdata, char *opt)
return dev;
}
#define UREQ(x, y) ((x) | ((y) << 8))
static int
umouse_request(void *scarg, struct usb_data_xfer *xfer)
{

View File

@ -107,6 +107,7 @@
#define USB_BUS_RESET_DELAY 100 /* ms */
#define UREQ(x, y) ((x) | ((y) << 8))
/*
* USB record layout in memory:
*