diff options
author | Linus Walleij <[email protected]> | 2021-12-06 03:04:21 +0100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2021-12-26 15:02:06 -0800 |
commit | e0149eebe47b9fe50cf85f23bcaeed81d7356c99 (patch) | |
tree | 866c527fe52f3ad6737ae2a476c76073cec5f155 /tools/perf/scripts/python | |
parent | d75553790b9f44f9a6023a51ca5283ef4688f339 (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 <[email protected]>
Cc: Chris Lesiak <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions