Re: [PATCH] OMAP MUX framework changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Tony Lindgren <tony@xxxxxxxxxxx> [101119 09:38]:
> * Dan Murphy <dmurphy@xxxxxx> [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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux