usb: gadget: should use u16 type variable to store MaxPower
authorDu, ChangbinX <changbinx.du@intel.com>
Tue, 17 Dec 2013 11:47:42 +0000 (11:47 +0000)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:46:30 +0000 (11:46 +0900)
commit07cd10a14d2af284fcaacddd00e01dc10df43565
tree35ec89d2abd5903479a1a5d20ff6151ff7d85137
parent6597f27d60789f84ee4d021383f7e3e58692c1b9
usb: gadget: should use u16 type variable to store MaxPower

From 7e827a0d300e084f74c65122baa5e3193f9a7f18 Mon Sep 17 00:00:00 2001
From: "Du, Changbin" <changbinx.du@intel.com>
Date: Mon, 16 Dec 2013 20:32:13 +0800
Subject: [PATCH] usb/gadget: should use u16 type variable to store MaxPower

The MaxPower field is of u16 type. So using u8 type variable can break
data (high byte lost).

Signed-off-by: Du, Changbin <changbinx.du@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/composite.c