summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2013-10-30 22:48:00 +0000
committerJonathan Cameron <jic23@kernel.org>2013-11-02 19:07:06 +0000
commitec7f68e07bf10198717b7824c78201b46bbf1956 (patch)
treeef26e0299c81501e6ba01e2c008578716e77cefb /drivers/iio/adc
parent00582bf8e7ed30aadbd935e430143fa18f316f8d (diff)
downloadlinux-ec7f68e07bf10198717b7824c78201b46bbf1956.tar.bz2
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 <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
0 files changed, 0 insertions, 0 deletions