]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iio: core: Make mlock internal to the iio core
authorRohit Sarkar <rohitsarkar5398@gmail.com>
Wed, 18 Mar 2020 16:11:51 +0000 (21:41 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2020 11:01:31 +0000 (11:01 +0000)
"mlock" should ideally only be used by the iio core. The mlock
implementation may change in the future which means that no driver
should be explicitly using mlock.

Signed-off-by: Rohit Sarkar <rohitsarkar5398@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
include/linux/iio/iio.h

index eed58ed2f36880b755c4ede5a7b799318b5b67e5..e975020abaa65fb992257481b2293b3f364dcf8a 100644 (file)
@@ -492,7 +492,7 @@ struct iio_buffer_setup_ops {
  * @buffer:            [DRIVER] any buffer present
  * @buffer_list:       [INTERN] list of all buffers currently attached
  * @scan_bytes:                [INTERN] num bytes captured to be fed to buffer demux
- * @mlock:             [DRIVER] lock used to prevent simultaneous device state
+ * @mlock:             [INTERN] lock used to prevent simultaneous device state
  *                     changes
  * @available_scan_masks: [DRIVER] optional array of allowed bitmasks
  * @masklength:                [INTERN] the length of the mask established from