Skip to content
Snippets Groups Projects
Commit aaa8152d authored by Federico Vaga's avatar Federico Vaga
Browse files

(incompatible) rename: __first_enabled_chan to zio_first_enabled_chan


This function can be used outside the ZIO core. At the moment there are
not driver which use this function, but it can be useful in the future.

Signed-off-by: default avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent a31a99d4
Branches
Tags
No related merge requests found
......@@ -245,7 +245,7 @@ enum zio_chan_flags {
};
/* get each channel from cset */
static inline struct zio_channel *__first_enabled_chan(struct zio_cset *cset,
static inline struct zio_channel *zio_first_enabled_chan(struct zio_cset *cset,
struct zio_channel *chan)
{
if (unlikely(chan - cset->chan >= cset->n_chan))
......@@ -260,7 +260,7 @@ static inline struct zio_channel *__first_enabled_chan(struct zio_cset *cset,
}
#define chan_for_each(cptr, cset) \
for (cptr = cset->chan; \
(cptr = __first_enabled_chan(cset, cptr)); \
(cptr = zio_first_enabled_chan(cset, cptr)); \
cptr++)
/* Use this in defining csets */
......
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