summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/kxsd9.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-09-01 11:44:47 +0200
committerJonathan Cameron <jic23@kernel.org>2016-09-18 12:35:26 +0200
commit79383aaec47a0ea0df49728ad0b8e72c4ac58fd0 (patch)
treef2b90f058fb9952759d911dc621c58908156596e /drivers/iio/accel/kxsd9.h
parentiio: accel: kxsd9: Fetch and handle regulators (diff)
downloadlinux-79383aaec47a0ea0df49728ad0b8e72c4ac58fd0.tar.xz
linux-79383aaec47a0ea0df49728ad0b8e72c4ac58fd0.zip
iio: accel: kxsd9: Replace "parent" with "dev"
What is passed to the .probe() and .remove() functions is technically the parent of the created IIO device but it becomes a big confusion for the head to have it named like this since it is usually clear from context the "dev" refers to the physical device, and when next adding PM callbacks a clean "struct device *dev" pointer is passed to these and that makes it even more confused. Rename "parent" to "dev" like in most other drivers. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/kxsd9.h')
-rw-r--r--drivers/iio/accel/kxsd9.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/accel/kxsd9.h b/drivers/iio/accel/kxsd9.h
index 19131a7a692c..9c0861f6b838 100644
--- a/drivers/iio/accel/kxsd9.h
+++ b/drivers/iio/accel/kxsd9.h
@@ -4,7 +4,7 @@
#define KXSD9_STATE_RX_SIZE 2
#define KXSD9_STATE_TX_SIZE 2
-int kxsd9_common_probe(struct device *parent,
+int kxsd9_common_probe(struct device *dev,
struct regmap *map,
const char *name);
-int kxsd9_common_remove(struct device *parent);
+int kxsd9_common_remove(struct device *dev);