From: Srinivas Pandruvada Date: Wed, 30 Oct 2013 22:48:00 +0000 (+0000) Subject: iio: hid_Sensors: fix crash during trigger unregister X-Git-Tag: v3.13-rc2~16^2~4^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec7f68e07bf10198717b7824c78201b46bbf1956;p=pandora-kernel.git iio: hid_Sensors: fix crash during trigger unregister We can't store the trigger instance created by iio_trigger_alloc, in trig field of iio_device structure. This needs to be stored in the driver private data. Othewise it can result in crash during module unload. Hence created a trig_ptr in the common data structure for each HID sensor IIO driver and storing here. Signed-off-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed