staging:iio:magnetometer:ak8975 use platform_data to pass the gpio number.
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 21 Sep 2011 10:15:59 +0000 (11:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Sep 2011 00:31:54 +0000 (17:31 -0700)
commitf6d838d7fecfd4e59a4ce7bdfb16165add36d26e
tree257ff5b3e557f7336af2fa23511c8a933271407e
parent6ddbb08af050948a7dda0fb5db6bf6bc01d54528
staging:iio:magnetometer:ak8975 use platform_data to pass the gpio number.

Tegra doesn't have irq_to_gpio() any more, and ak8975 is included in
tegra_defconfig. This causes a build failure. Instead, pass the GPIO name
through platform data.

[swarren: Rewrote commit description when I squashed this with my patch
to remove the irq_to_gpio() call]

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/magnetometer/ak8975.c