mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 07:04:44 +00:00
df9c1c42c2
Also get rid of a few function defs where they are only now in one core file anyway. Whilst here add mask = 0 to get rid of warning. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/* The industrial I/O core function defs.
|
|
*
|
|
* Copyright (c) 2008 Jonathan Cameron
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published by
|
|
* the Free Software Foundation.
|
|
*
|
|
* These definitions are meant for use only within the IIO core, not indvidual
|
|
* drivers.
|
|
*/
|
|
|
|
/**
|
|
* iio_device_get_chrdev_minor() - get an unused minor number
|
|
**/
|
|
int iio_device_get_chrdev_minor(void);
|
|
void iio_device_free_chrdev_minor(int val);
|
|
|
|
|
|
/**
|
|
* iio_put() - internal module reference count reduce
|
|
**/
|
|
void iio_put(void);
|
|
|
|
/**
|
|
* iio_get() - internal module reference count increase
|
|
**/
|
|
void iio_get(void);
|
|
|
|
extern dev_t iio_devt;
|
|
|
|
int __iio_add_chan_devattr(const char *postfix,
|
|
const char *group,
|
|
struct iio_chan_spec const *chan,
|
|
ssize_t (*func)(struct device *dev,
|
|
struct device_attribute *attr,
|
|
char *buf),
|
|
ssize_t (*writefunc)(struct device *dev,
|
|
struct device_attribute *attr,
|
|
const char *buf,
|
|
size_t len),
|
|
int mask,
|
|
bool generic,
|
|
struct device *dev,
|
|
struct list_head *attr_list);
|
|
|
|
/* Event interface flags */
|
|
#define IIO_BUSY_BIT_POS 1
|