From: Lars-Peter Clausen Date: Thu, 21 Jun 2012 17:11:00 +0000 (+0200) Subject: iio:trigger: Use to_iio_trigger() instead of dev_get_drvdata() X-Git-Tag: v3.6-rc1~100^2~601 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=971ff1db41b0f16f34cfdeb9e0460d7dc598e68e;p=pandora-kernel.git iio:trigger: Use to_iio_trigger() instead of dev_get_drvdata() Use to_iio_trigger(dev) instead of dev_get_drvdata(dev). Both will return the trigger which belongs to the device, but the the first on is a bit more lightweight. Since this is the last location where we used dev_get_drvdata() for retrieving the trigger there is no need anymore to assign the the trigger to the devices drvdata, so we can remove that as well. Signed-off-by: Lars-Peter Clausen Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed