staging:iio:adt7410: use local platformdata if none is specified
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 3 Jul 2012 09:27:53 +0000 (11:27 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 8 Jul 2012 09:39:59 +0000 (10:39 +0100)
commitc732a24c5a9392cf3738f5957e0d97d37c09e6e1
tree8a8810166b2839e3a6f4e87f877266f7c5f75639
parentd297b9bdad044a732223b44c19e8223d93fd3aa0
staging:iio:adt7410: use local platformdata if none is specified

The adt7410 expects information about an irq in platform_data.
The driver can work without an irq, so make platform_data optional
by specifying a dummy platform_data if the device has none.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/adt7410.c