aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2021-11-21 20:11:24 +0100
committerHans de Goede <[email protected]>2021-11-25 16:18:21 +0100
commitc7e1c782f2432cd4dc6c6ea930d99d93997a0edb (patch)
treea10593374d72b184bc1e15fb8b5e34734056456d /tools/perf/scripts/python/bin
parentc15f86856bec5bbf9a5ea909ce5ccc5b05744eb1 (diff)
platform/x86: thinkpad_acpi: Make *_init() functions return -ENODEV instead of 1
Make ibm_init_struct.init() callbacks return -ENODEV instead of 1 when the subdevice / function is not available. Using -ENODEV clearly states what it going on where as a magic return of "1" requires a deep dive into the code to figure out what is going on. This also allows for some cleanups, avoiding the need to translate an -ENODEV return into "return 1" (which often mistakenly was "return 0"). Reviewed-by: Andy Shevchenko <[email protected]> Tested-by: Mark Pearson <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions