diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2026-03-20 07:45:55 -0700 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-03-30 19:45:06 -0700 |
| commit | bd1c178affd7d1ca86eaf97cf797e0d15e57eb0a (patch) | |
| tree | cdf0125c21fc80071e6b206e960338db10f39adf /tools/lib/python/kdoc/python_version.py | |
| parent | 1814f4d3ff358277a5b6957e7f133c2812dc80ec (diff) | |
hwmon: (pmbus_core) Use guard() for mutex protection
Simplify the code by using guard() and scoped_guard() instead of
mutex_lock()/mutex_unlock() sequences.
This patch changes semantics for debugfs accesses. Previously, those
used mutex_lock_interruptible() and not mutex_lock(). This change is
intentional and should have little if any impact since locks should not
be held for a significant amount of time and debugfs accesses are less
critical than sysfs accesses (which never used interruptable locks).
Reviewed-by: Sanman Pradhan <psanman@juniper.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
