Merge tag 'char-misc-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc updates from Greg KH: "Here is the "big" char/misc driver patchset for 4.13-rc1. Lots of stuff in here, a large thunderbolt update, w1 driver header reorg, the new mux driver subsystem, google firmware driver updates, and a raft of other smaller things. Full details in the shortlog. All of these have been in linux-next for a while with the only reported issue being a merge problem with this tree and the jc-docs tree in the w1 documentation area" * tag 'char-misc-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (147 commits) misc: apds990x: Use sysfs_match_string() helper mei: drop unreachable code in mei_start mei: validate the message header only in first fragment. DocBook: w1: Update W1 file locations and names in DocBook mux: adg792a: always require I2C support nvmem: rockchip-efuse: add support for rk322x-efuse nvmem: core: add locking to nvmem_find_cell nvmem: core: Call put_device() in nvmem_unregister() nvmem: core: fix leaks on registration errors nvmem: correct Broadcom OTP controller driver writes w1: Add subsystem kernel public interface drivers/fsi: Add module license to core driver drivers/fsi: Use asynchronous slave mode drivers/fsi: Add hub master support drivers/fsi: Add SCOM FSI client device driver drivers/fsi/gpio: Add tracepoints for GPIO master drivers/fsi: Add GPIO based FSI master drivers/fsi: Document FSI master sysfs files in ABI drivers/fsi: Add error handling for slave drivers/fsi: Add tracepoints for low-level operations ...
This commit is contained in:
@@ -312,4 +312,41 @@ int iio_read_channel_scale(struct iio_channel *chan, int *val,
|
||||
int iio_convert_raw_to_processed(struct iio_channel *chan, int raw,
|
||||
int *processed, unsigned int scale);
|
||||
|
||||
/**
|
||||
* iio_get_channel_ext_info_count() - get number of ext_info attributes
|
||||
* connected to the channel.
|
||||
* @chan: The channel being queried
|
||||
*
|
||||
* Returns the number of ext_info attributes
|
||||
*/
|
||||
unsigned int iio_get_channel_ext_info_count(struct iio_channel *chan);
|
||||
|
||||
/**
|
||||
* iio_read_channel_ext_info() - read ext_info attribute from a given channel
|
||||
* @chan: The channel being queried.
|
||||
* @attr: The ext_info attribute to read.
|
||||
* @buf: Where to store the attribute value. Assumed to hold
|
||||
* at least PAGE_SIZE bytes.
|
||||
*
|
||||
* Returns the number of bytes written to buf (perhaps w/o zero termination;
|
||||
* it need not even be a string), or an error code.
|
||||
*/
|
||||
ssize_t iio_read_channel_ext_info(struct iio_channel *chan,
|
||||
const char *attr, char *buf);
|
||||
|
||||
/**
|
||||
* iio_write_channel_ext_info() - write ext_info attribute from a given channel
|
||||
* @chan: The channel being queried.
|
||||
* @attr: The ext_info attribute to read.
|
||||
* @buf: The new attribute value. Strings needs to be zero-
|
||||
* terminated, but the terminator should not be included
|
||||
* in the below len.
|
||||
* @len: The size of the new attribute value.
|
||||
*
|
||||
* Returns the number of accepted bytes, which should be the same as len.
|
||||
* An error code can also be returned.
|
||||
*/
|
||||
ssize_t iio_write_channel_ext_info(struct iio_channel *chan, const char *attr,
|
||||
const char *buf, size_t len);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user