commit | 77142a611252de84ac533842438d19e7b2f494e7 | [log] [tgz] |
---|---|---|
author | Mike Looijmans <mike.looijmans@topic.nl> | Tue Apr 24 13:10:30 2018 +0200 |
committer | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | Wed Apr 25 23:05:59 2018 +0200 |
tree | 44e40c567773892bbf00e43dacbce8d770fa95a6 | |
parent | 6d08b06e67cd117f6992c46611dfb4ce267cd71e [diff] |
gpio-poweroff: Use gpiod_set_value_cansleep The power-off call is done in a context that must be able to sleep, so use gpiod_set_value_cansleep instead of the atomic gpiod_set_value call. This fixes a kernel warning at shutdown when the gpio is controlled through an IO expander for example. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>