Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: tweak language in industrialio-trigger comments

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Peter Meerwald and committed by
Jonathan Cameron
860c9c54 a405b00e

+6 -6
+6 -6
drivers/iio/industrialio-trigger.c
··· 160 160 trig->use_count--; 161 161 if (trig->use_count == 0 && trig->ops && trig->ops->try_reenable) 162 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 164 iio_trigger_poll(trig, 0); 165 165 } 166 166 EXPORT_SYMBOL(iio_trigger_notify_done); ··· 193 193 * This is not currently handled. Alternative of not enabling trigger unless 194 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? */ 197 197 static int iio_trigger_attach_poll_func(struct iio_trigger *trig, 198 198 struct iio_poll_func *pf) 199 199 { ··· 201 201 bool notinuse 202 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 205 __module_get(pf->indio_dev->info->driver_module); 206 206 pf->irq = iio_trigger_get_irq(trig); 207 207 ret = request_threaded_irq(pf->irq, pf->h, pf->thread, ··· 288 288 EXPORT_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 293 * For trigger consumers the current_trigger interface allows the trigger 294 294 * used by the device to be queried. ··· 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 310 * For trigger consumers the current_trigger interface allows the trigger 311 311 * used for this device to be specified at run time based on the triggers ··· 476 476 477 477 void 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 480 if (indio_dev->trig) 481 481 iio_trigger_put(indio_dev->trig); 482 482 }