diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-09-01 09:44:47 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-09-18 10:35:26 (GMT) |
commit | 79383aaec47a0ea0df49728ad0b8e72c4ac58fd0 (patch) | |
tree | f2b90f058fb9952759d911dc621c58908156596e /drivers/iio/accel/kxsd9.h | |
parent | 2bb4a02aad0257148be4f51e3b4c9c0077787e17 (diff) | |
download | linux-79383aaec47a0ea0df49728ad0b8e72c4ac58fd0.tar.xz |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/accel/kxsd9.h b/drivers/iio/accel/kxsd9.h index 19131a7..9c0861f 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); |