* Tony Lindgren <[email protected]> [101119 09:38]:
> * Dan Murphy <[email protected]> [101117 09:58]:
> > --- a/arch/arm/mach-omap2/mux.c
> > +++ b/arch/arm/mach-omap2/mux.c
> >  
> > +static struct omap_mux *omap_mux_get_by_mux(struct omap_mux_partition 
> > *partition,
> > +                                   char *name)
> > +{
> > +   struct omap_mux_entry *e;
> > +   int i = 0;
> > +
> > +   list_for_each_entry(e, &partition->muxmodes, node) {
> > +           struct omap_mux *m = &e->mux;
> > +           for (i = 0; i < OMAP_MUX_NR_MODES; i++) {
> > +                   if (m->muxnames[i] == NULL)
> > +                           break;
> > +                   else if (!strcmp(name, m->muxnames[i]))
> > +                           return m;
> > +           }
> > +   }
> > +
> > +   return NULL;
> > +}
> 
> Hmm turns out we almost have this already in _omap_mux_init_signal.
> Also we need to know the mux mode value to make use of this, so
> how about the patch below instead?

Will post a better version soon.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to