Skip to content
Commit 56b1b909 authored by Du, ChangbinX's avatar Du, ChangbinX Committed by Felipe Balbi
Browse files

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: default avatarDu, Changbin <changbinx.du@intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent c4b34a3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment