mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
iio: imu: inv_mpu6050: fix error path not turning chip back off
Some functions are turning the chip on and not back off in error path. With set_power function using a reference counter that would keep the chip on forever. Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
4cfcb2bfdd
commit
eaa54d96a4
2 changed files with 32 additions and 16 deletions
Loading…
Add table
Add a link
Reference in a new issue