Re: [PATCH 1/2] gpio: add pin biasing and drive mode to gpiolib

From: Alan Cox
Date: Mon Apr 18 2011 - 04:18:46 EST


> gpiolib handles input and output, high and low because that's all that could reasonably be expected to a) always work and b) be changed at run time in the driver.

Imagine if file systems only handled 8.3 filenames because that's all
that could reasonably be expected to a) always work !

> So in short - what's the use case? Which driver requires this?
>

Also your comment re simply in or out on or off is incorrect. Pins may
also be in use by firmware and the like and in a 'neither' state.
Something certain gpio people seem to be in denial over.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/