On Tue, Apr 14, 2009 at 11:53:54AM +0200, Guennadi Liakhovetski wrote:
> On Tue, 14 Apr 2009, Sascha Hauer wrote:
> 
> > On Tue, Apr 14, 2009 at 11:20:03AM +0200, Guennadi Liakhovetski wrote:
> > > 
> > > If you don't object, I'll just add a .free_bus method to soc_camera_link, 
> > > and switch pcm990 to only use two values: a negative value for a 
> > > non-allocated gpio - either before the first attempt or after an error, 
> > > thus re-trying every time if gpio is negative, in case a driver has been 
> > > loaded in the meantime.
> > 
> > For the sake of symmetry, shouldn't we have an init function aswell?
> 
> Well, for the sake of symmetry - yes, but I'm not sure we want to bloat 
> this simple API further just to make it symmetric... You think it's worth 
> it? Or do you have any "practical" reasons for that? Of course, we could 
> also add a void *bus_resource to soc_camera_link and get rid of the static 
> gpio_bus_switch and allocate it dynamically in .bus_init and free it in 
> .bus_release, but...

No, I have no practical use for it at the moment. My feeling says it's
better to add it, but just follow your feelings instead of mine ;)

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to