summaryrefslogtreecommitdiff
path: root/drivers/devfreq/devfreq.c
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2016-10-31 16:05:37 -0700
committerJack Pham <jackp@codeaurora.org>2016-11-02 20:22:11 -0700
commit64d72675d7d89a8e842987bf0650c67eb8626f8d (patch)
treeffa2edba4fb0b5bad75f787627c583f1ddc1e294 /drivers/devfreq/devfreq.c
parent9d735f227869417635bb126a4aa0382d45ec8df3 (diff)
usb: pd: Avoid calling SVID disconnect if not previously connected
Only call an SVID handler's disconnect function only if it was previously connected, i.e. when the state machine had proceeded received a successful DISCOVER_SVIDs response. This helps to avoid excessive notification to SVID clients. While at it, require that .connect and .disconnect callbacks are supplied during registration. This helps to eliminate NULL checks each time they are called. Change-Id: I030153a6b2106a6504ed51b5cb00a27f842e2488 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
0 files changed, 0 insertions, 0 deletions