OSDN Git Service

iio: accel: kxsd9: Replace "parent" with "dev"
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 1 Sep 2016 09:44:47 +0000 (11:44 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 18 Sep 2016 10:35:26 +0000 (11:35 +0100)
commit79383aaec47a0ea0df49728ad0b8e72c4ac58fd0
treef2b90f058fb9952759d911dc621c58908156596e
parent2bb4a02aad0257148be4f51e3b4c9c0077787e17
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>
drivers/iio/accel/kxsd9.c
drivers/iio/accel/kxsd9.h