From a36159eec6ca17402b0e146b86efaf76568dc353 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 20 Sep 2024 01:41:23 +0000 Subject: [PATCH] 重命名 AX88772C_eeprom/asix.c 为 asix_mac.c --- kernel/include/linux/iio/buffer_impl.h | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) diff --git a/kernel/include/linux/iio/buffer_impl.h b/kernel/include/linux/iio/buffer_impl.h index d1171db..a63dc07 100644 --- a/kernel/include/linux/iio/buffer_impl.h +++ b/kernel/include/linux/iio/buffer_impl.h @@ -18,7 +18,7 @@ /** * struct iio_buffer_access_funcs - access functions for buffers. * @store_to: actually store stuff to the buffer - * @read_first_n: try to get a specified number of bytes (must exist) + * @read: try to get a specified number of bytes (must exist) * @data_available: indicates how much data is available for reading from * the buffer. * @request_update: if a parameter change has been marked, update underlying @@ -45,9 +45,7 @@ **/ struct iio_buffer_access_funcs { int (*store_to)(struct iio_buffer *buffer, const void *data); - int (*read_first_n)(struct iio_buffer *buffer, - size_t n, - char __user *buf); + int (*read)(struct iio_buffer *buffer, size_t n, char __user *buf); size_t (*data_available)(struct iio_buffer *buffer); int (*request_update)(struct iio_buffer *buffer); @@ -96,12 +94,6 @@ unsigned int watermark; /* private: */ - /* - * @scan_el_attrs: Control of scan elements if that scan mode - * control method is used. - */ - struct attribute_group *scan_el_attrs; - /* @scan_timestamp: Does the scan mode include a timestamp. */ bool scan_timestamp; @@ -116,9 +108,6 @@ * created from the iio_chan_info array. */ struct attribute_group scan_el_group; - - /* @stufftoread: Flag to indicate new data. */ - bool stufftoread; /* @attrs: Standard attributes of the buffer. */ const struct attribute **attrs; -- Gitblit v1.6.2