commit | 154021a317564a600fb5b8e6eba9a76ca6888310 | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Thu Sep 01 11:44:37 2016 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Sep 18 11:07:50 2016 +0100 |
tree | 7eaa0ca4eb0daddf9a91c09e72f0b30d3441ac3a | |
parent | 9f9079720a4b802555ffc6f71ce3dd8adfd78f60 [diff] |
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>