Staging: iio: max517.c: Fix client obtainment by using iio_dev_get_devdata()
authorRoland Stigge <stigge@antcom.de>
Sat, 29 Jan 2011 15:36:46 +0000 (16:36 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 31 Jan 2011 22:12:18 +0000 (14:12 -0800)
commit826514b4ee347bf683f043e0900590cfac4d6da5
tree6df81f511a6e6c7408c4462c0e0b2e5b3792aa2a
parent868788278eaa5b841ec1a810b41e156f5fba0ab5
Staging: iio: max517.c: Fix client obtainment by using iio_dev_get_devdata()

max517.c: Fix client obtainment by using iio_dev_get_devdata()

This patch uses dev_get_drvdata() and iio_dev_get_devdata() instead of
to_i2c_client() (broken!) to obtain i2c_client data.

Further, some minor typo fixes are included.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/dac/max517.c