diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-09-01 11:44:37 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-09-18 12:07:50 +0200 |
commit | 154021a317564a600fb5b8e6eba9a76ca6888310 (patch) | |
tree | 7eaa0ca4eb0daddf9a91c09e72f0b30d3441ac3a /drivers/oprofile/buffer_sync.c | |
parent | iio: accel: kxsd9: Split out transport mechanism (diff) | |
download | linux-154021a317564a600fb5b8e6eba9a76ca6888310.tar.xz linux-154021a317564a600fb5b8e6eba9a76ca6888310.zip |
iio: accel: kxsd9: split out a common remove() function
This makes it possible to later split the transport mechanism
using a generic probe() and a generic remove().
Use dev_set_drvdata() and dev_get_drvdata() as a paired
accessor to operate on the abstract struct device * regardless
of the transport mechanism in use.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/oprofile/buffer_sync.c')
0 files changed, 0 insertions, 0 deletions