mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
hwmon: (pmbus) Add support for guarded PMBus lock
Add support for guard(pmbus_lock)() and scoped_guard(pmbus_lock)() to be able to simplify the PMBus code. Also introduce pmbus_lock() as pre-requisite for supporting guard(). Reviewed-by: Sanman Pradhan <psanman@juniper.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
7c760db74c
commit
1814f4d3ff
2 changed files with 13 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue