Commit aaa8152d authored by Federico Vaga's avatar Federico Vaga

(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: 's avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a31a99d4
......@@ -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 */
......
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