aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAlban Bedel <albeu@free.fr>2019-01-28 15:55:03 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-31 16:24:14 +0100
commitd4e7fef1a9a5d2bf3f859ba9f50f4d5409a09ab0 (patch)
tree441f6de49efc28711535143afa244f62746645fc /tools/perf/scripts/python/export-to-postgresql.py
parentnvmem: core: Fix cell lookup when no cell is found (diff)
downloadlinux-d4e7fef1a9a5d2bf3f859ba9f50f4d5409a09ab0.tar.gz
linux-d4e7fef1a9a5d2bf3f859ba9f50f4d5409a09ab0.zip
nvmem: core: Properly handle connection ID in of_nvmem_device_get()
of_nvmem_device_get() would crash if NULL was passed as a connection ID. Rework this to use the usual sementic of assuming the first connection when no connection ID is given. Furthermore of_nvmem_device_get() would return -EINVAL when it failed to resolve the connection, making it impossible to properly implement an optional connection. Return -ENOENT instead to let the caller know that the connection doesn't exists. Signed-off-by: Alban Bedel <albeu@free.fr> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions