iio: accel: kxsd9: split out a common remove() function
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 1 Sep 2016 09:44:37 +0000 (11:44 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 18 Sep 2016 10:07:50 +0000 (11:07 +0100)
commit154021a317564a600fb5b8e6eba9a76ca6888310
tree7eaa0ca4eb0daddf9a91c09e72f0b30d3441ac3a
parent9f9079720a4b802555ffc6f71ce3dd8adfd78f60
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>
drivers/iio/accel/kxsd9.c