aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-12-06 03:04:21 +0100
committerGuenter Roeck <linux@roeck-us.net>2021-12-26 15:02:06 -0800
commite0149eebe47b9fe50cf85f23bcaeed81d7356c99 (patch)
tree866c527fe52f3ad6737ae2a476c76073cec5f155 /tools/perf/scripts/python/sctop.py
parentd75553790b9f44f9a6023a51ca5283ef4688f339 (diff)
hwmon: (ntc_thermistor) Move and refactor DT parsing
Move the parsing of the DT config right above probe(). Allocate the state container for the driver in probe() instead of inside the DT config parsing function: as a result return an int instead of a pointer. Drop the check for !np: we can only probe from DT right now so no risk of ending up here. Cc: Peter Rosin <peda@axentia.se> Cc: Chris Lesiak <chris.lesiak@licor.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20211206020423.62402-1-linus.walleij@linaro.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions