summaryrefslogtreecommitdiff
path: root/drivers/iio/potentiometer
diff options
context:
space:
mode:
authorJagath Jog J <jagathjog1996@gmail.com>2022-05-05 16:30:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-17 16:15:07 +0300
commitf349ecf3ce13a69f8c3c0f12b0822f7faa7beee4 (patch)
tree3f7375b6d73f62bc1aedd41a5419a32188503767 /drivers/iio/potentiometer
parent9158b263330b253236ef8997c4cf14e3ac9ee2ff (diff)
downloadlinux-f349ecf3ce13a69f8c3c0f12b0822f7faa7beee4.tar.xz
iio: accel: bma400: conversion to device-managed function
[ Upstream commit 12c99f859fd3da5fc8f8491826e7023001f54821 ] This is a conversion to device-managed by using devm_iio_device_register() inside probe function. Previously the bma400 was not put into power down mode in some error paths in probe where it now is, but that should cause no harm. The dev_set_drvdata() call, bma400_remove() function and hooks in the I2C and SPI driver struct is removed as devm_iio_device_register() function is used to automatically unregister on driver detach. Signed-off-by: Jagath Jog J <jagathjog1996@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220505133021.22362-4-jagathjog1996@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/iio/potentiometer')
0 files changed, 0 insertions, 0 deletions