diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-11-17 12:37:53 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-11-21 16:03:39 +0000 |
commit | ee8caea0c1449271d6f03145d367423dc5d8749c (patch) | |
tree | 133d1e9157f4cd9881c46103032fc0f4f49c915f /drivers/iio/industrialio-core.c | |
parent | d59377023d4a30e0bb0eac38c813224ce8bc61ec (diff) | |
download | linux-ee8caea0c1449271d6f03145d367423dc5d8749c.tar.gz linux-ee8caea0c1449271d6f03145d367423dc5d8749c.tar.bz2 linux-ee8caea0c1449271d6f03145d367423dc5d8749c.zip |
iio: core: organize buffer file-ops in the order defined in the struct
The change is mostly cosmetic. This organizes the order of assignment of
the members of 'iio_buffer_fileops' to be similar to the one as defined in
the 'struct file_operations' type.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201117103753.8450-1-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
-rw-r--r-- | drivers/iio/industrialio-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index e53c771d66eb..89f9af12c8e6 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c @@ -1750,14 +1750,14 @@ out_unlock: } static const struct file_operations iio_buffer_fileops = { - .read = iio_buffer_read_outer_addr, - .release = iio_chrdev_release, - .open = iio_chrdev_open, - .poll = iio_buffer_poll_addr, .owner = THIS_MODULE, .llseek = noop_llseek, + .read = iio_buffer_read_outer_addr, + .poll = iio_buffer_poll_addr, .unlocked_ioctl = iio_ioctl, .compat_ioctl = compat_ptr_ioctl, + .open = iio_chrdev_open, + .release = iio_chrdev_release, }; static int iio_check_unique_scan_index(struct iio_dev *indio_dev) |