aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-trigger.c
diff options
context:
space:
mode:
authorPeter Meerwald <p.meerwald@bct-electronic.com>2013-02-04 06:36:00 -0500
committerJonathan Cameron <jic23@kernel.org>2013-02-06 13:40:05 -0500
commit860c9c54272deaab43b40dbe416becb34abd344f (patch)
treed2664c0874e8d94823318959a8b2e7e1bb351065 /drivers/iio/industrialio-trigger.c
parenta405b00e4470b15ed062de97c4ce552d41a0a60b (diff)
iio: tweak language in industrialio-trigger comments
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-trigger.c')
-rw-r--r--drivers/iio/industrialio-trigger.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c
index 4fe0ead84213..4d6c7d84e155 100644
--- a/drivers/iio/industrialio-trigger.c
+++ b/drivers/iio/industrialio-trigger.c
@@ -160,7 +160,7 @@ void iio_trigger_notify_done(struct iio_trigger *trig)
160 trig->use_count--; 160 trig->use_count--;
161 if (trig->use_count == 0 && trig->ops && trig->ops->try_reenable) 161 if (trig->use_count == 0 && trig->ops && trig->ops->try_reenable)
162 if (trig->ops->try_reenable(trig)) 162 if (trig->ops->try_reenable(trig))
163 /* Missed and interrupt so launch new poll now */ 163 /* Missed an interrupt so launch new poll now */
164 iio_trigger_poll(trig, 0); 164 iio_trigger_poll(trig, 0);
165} 165}
166EXPORT_SYMBOL(iio_trigger_notify_done); 166EXPORT_SYMBOL(iio_trigger_notify_done);
@@ -193,7 +193,7 @@ static void iio_trigger_put_irq(struct iio_trigger *trig, int irq)
193 * This is not currently handled. Alternative of not enabling trigger unless 193 * This is not currently handled. Alternative of not enabling trigger unless
194 * the relevant function is in there may be the best option. 194 * the relevant function is in there may be the best option.
195 */ 195 */
196/* Worth protecting against double additions?*/ 196/* Worth protecting against double additions? */
197static int iio_trigger_attach_poll_func(struct iio_trigger *trig, 197static int iio_trigger_attach_poll_func(struct iio_trigger *trig,
198 struct iio_poll_func *pf) 198 struct iio_poll_func *pf)
199{ 199{
@@ -201,7 +201,7 @@ static int iio_trigger_attach_poll_func(struct iio_trigger *trig,
201 bool notinuse 201 bool notinuse
202 = bitmap_empty(trig->pool, CONFIG_IIO_CONSUMERS_PER_TRIGGER); 202 = bitmap_empty(trig->pool, CONFIG_IIO_CONSUMERS_PER_TRIGGER);
203 203
204 /* Prevent the module being removed whilst attached to a trigger */ 204 /* Prevent the module from being removed whilst attached to a trigger */
205 __module_get(pf->indio_dev->info->driver_module); 205 __module_get(pf->indio_dev->info->driver_module);
206 pf->irq = iio_trigger_get_irq(trig); 206 pf->irq = iio_trigger_get_irq(trig);
207 ret = request_threaded_irq(pf->irq, pf->h, pf->thread, 207 ret = request_threaded_irq(pf->irq, pf->h, pf->thread,
@@ -288,7 +288,7 @@ void iio_dealloc_pollfunc(struct iio_poll_func *pf)
288EXPORT_SYMBOL_GPL(iio_dealloc_pollfunc); 288EXPORT_SYMBOL_GPL(iio_dealloc_pollfunc);
289 289
290/** 290/**
291 * iio_trigger_read_current() - trigger consumer sysfs query which trigger 291 * iio_trigger_read_current() - trigger consumer sysfs query current trigger
292 * 292 *
293 * For trigger consumers the current_trigger interface allows the trigger 293 * For trigger consumers the current_trigger interface allows the trigger
294 * used by the device to be queried. 294 * used by the device to be queried.
@@ -305,7 +305,7 @@ static ssize_t iio_trigger_read_current(struct device *dev,
305} 305}
306 306
307/** 307/**
308 * iio_trigger_write_current() trigger consumer sysfs set current trigger 308 * iio_trigger_write_current() - trigger consumer sysfs set current trigger
309 * 309 *
310 * For trigger consumers the current_trigger interface allows the trigger 310 * For trigger consumers the current_trigger interface allows the trigger
311 * used for this device to be specified at run time based on the triggers 311 * used for this device to be specified at run time based on the triggers
@@ -476,7 +476,7 @@ void iio_device_register_trigger_consumer(struct iio_dev *indio_dev)
476 476
477void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) 477void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev)
478{ 478{
479 /* Clean up and associated but not attached triggers references */ 479 /* Clean up an associated but not attached trigger reference */
480 if (indio_dev->trig) 480 if (indio_dev->trig)
481 iio_trigger_put(indio_dev->trig); 481 iio_trigger_put(indio_dev->trig);
482} 482}