Lines Matching refs:iiospec
99 * __of_iio_simple_xlate - translate iiospec to the IIO channel index
101 * @iiospec: IIO specifier as found in the device tree
109 const struct of_phandle_args *iiospec)
111 if (!iiospec->args_count)
114 if (iiospec->args[0] >= indio_dev->num_channels) {
116 iiospec->args[0]);
120 return iiospec->args[0];
129 struct of_phandle_args iiospec;
133 index, &iiospec);
137 idev = bus_find_device(&iio_bus_type, NULL, iiospec.np,
140 of_node_put(iiospec.np);
147 index = indio_dev->info->of_xlate(indio_dev, &iiospec);
149 index = __of_iio_simple_xlate(indio_dev, &iiospec);
150 of_node_put(iiospec.np);