iio.h (62f4f36cdfcdbb961bbbeab15e6595dd391d2205) iio.h (b804e2b76ac6d5559b99588e0190ac97b5597497)
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3/* The industrial I/O core
4 *
5 * Copyright (c) 2008 Jonathan Cameron
6 */
7#ifndef _INDUSTRIAL_IO_H_
8#define _INDUSTRIAL_IO_H_

--- 496 unchanged lines hidden (view full) ---

505 * @pollfunc: [DRIVER] function run on trigger being received
506 * @pollfunc_event: [DRIVER] function run on events trigger being received
507 * @channels: [DRIVER] channel specification structure table
508 * @num_channels: [DRIVER] number of channels specified in @channels.
509 * @name: [DRIVER] name of the device.
510 * @label: [DRIVER] unique name to identify which device this is
511 * @info: [DRIVER] callbacks and constant info from driver
512 * @clock_id: [INTERN] timestamping clock posix identifier
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3/* The industrial I/O core
4 *
5 * Copyright (c) 2008 Jonathan Cameron
6 */
7#ifndef _INDUSTRIAL_IO_H_
8#define _INDUSTRIAL_IO_H_

--- 496 unchanged lines hidden (view full) ---

505 * @pollfunc: [DRIVER] function run on trigger being received
506 * @pollfunc_event: [DRIVER] function run on events trigger being received
507 * @channels: [DRIVER] channel specification structure table
508 * @num_channels: [DRIVER] number of channels specified in @channels.
509 * @name: [DRIVER] name of the device.
510 * @label: [DRIVER] unique name to identify which device this is
511 * @info: [DRIVER] callbacks and constant info from driver
512 * @clock_id: [INTERN] timestamping clock posix identifier
513 * @info_exist_lock: [INTERN] lock to prevent use during removal
514 * @setup_ops: [DRIVER] callbacks to call before and after buffer
515 * enable/disable
516 * @chrdev: [INTERN] associated character device
517 * @flags: [INTERN] file ops related flags including busy flag.
518 * @priv: [DRIVER] reference to driver's private information
519 * **MUST** be accessed **ONLY** via iio_priv() helper
520 */
521struct iio_dev {

--- 15 unchanged lines hidden (view full) ---

537
538 struct iio_chan_spec const *channels;
539 int num_channels;
540
541 const char *name;
542 const char *label;
543 const struct iio_info *info;
544 clockid_t clock_id;
513 * @setup_ops: [DRIVER] callbacks to call before and after buffer
514 * enable/disable
515 * @chrdev: [INTERN] associated character device
516 * @flags: [INTERN] file ops related flags including busy flag.
517 * @priv: [DRIVER] reference to driver's private information
518 * **MUST** be accessed **ONLY** via iio_priv() helper
519 */
520struct iio_dev {

--- 15 unchanged lines hidden (view full) ---

536
537 struct iio_chan_spec const *channels;
538 int num_channels;
539
540 const char *name;
541 const char *label;
542 const struct iio_info *info;
543 clockid_t clock_id;
545 struct mutex info_exist_lock;
546 const struct iio_buffer_setup_ops *setup_ops;
547 struct cdev chrdev;
548
549 unsigned long flags;
550 void *priv;
551};
552
553int iio_device_id(struct iio_dev *indio_dev);

--- 200 unchanged lines hidden ---
544 const struct iio_buffer_setup_ops *setup_ops;
545 struct cdev chrdev;
546
547 unsigned long flags;
548 void *priv;
549};
550
551int iio_device_id(struct iio_dev *indio_dev);

--- 200 unchanged lines hidden ---