Commit a31a99d4 authored by Federico Vaga's avatar Federico Vaga

(incompatible) rename: __get_n_chan_enabled to zio_get_n_chan_enabled

This function can be used outside the ZIO core (e.g. AD788x driver). A
driver can be interested to know how many channel are active during an
acquisition to allocate the proper buffer/structure
Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f0716f34
......@@ -146,7 +146,7 @@ static int ad788x_input_cset(struct zio_cset *cset)
return -ENOMEM;
ad788x = cset->zdev->priv_d;
context->chan_enable = __get_n_chan_enabled(cset);
context->chan_enable = zio_get_n_chan_enabled(cset);
/* prepare SPI message and transfer */
nsamples = cset->chan->current_ctrl->nsamples;
......
......@@ -271,7 +271,7 @@ static inline struct zio_channel *__first_enabled_chan(struct zio_cset *cset,
* spinlock must be taken before invoke this function and it can be released
* after the complete consumption of the information provided by this function
*/
static inline unsigned int __get_n_chan_enabled(struct zio_cset *cset) {
static inline unsigned int zio_get_n_chan_enabled(struct zio_cset *cset) {
struct zio_channel *chan;
unsigned int n_chan = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment