summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-05-23 01:50:41 +0300
committerSebastian Reichel <sre@kernel.org>2021-06-03 19:40:15 +0300
commit5bcb5087c9dd3dca1ff0ebd8002c5313c9332b56 (patch)
tree50279bcd7fb85a644fdeb405b1499e356f9b4200 /tools/perf/scripts/python
parent7e2bb83c617f8fccc04db7d03f105a06b9d491a9 (diff)
downloadlinux-5bcb5087c9dd3dca1ff0ebd8002c5313c9332b56.tar.xz
power: supply: ab8500: Avoid NULL pointers
Sometimes the code will crash because we haven't enabled AC or USB charging and thus not created the corresponding psy device. Fix it by checking that it is there before notifying. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions