summaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorManu Gautam <mgautam@codeaurora.org>2018-11-09 14:58:37 +0530
committerManu Gautam <mgautam@codeaurora.org>2018-11-09 15:02:43 +0530
commitde2b9b133098f89abccd5403473479250430415c (patch)
treea99a30f92a151c9a9f94055f351383e75837cc13 /lib/pm-notifier-error-inject.c
parente2a4721cface6a4766945bea70259ae7aba06d81 (diff)
usb: gadget: Don't override config->MaxPower if specified
For various reasons, user may want to specify lower bMaxPower using following sysfs attribute for a configuration: "configs/c.1/MaxPower" Driver currently ignores that and selects 500mA or 900mA based on the connection speed. Fix this by no overriding bMaxPower if config->MaxPower is non-zero. Change-Id: I10b499b327d5c4e332df2ce435211144637c48d0 Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions