Re: [PATCH] gpio sysfs: add a "toggle" value

From: Andrew Morton
Date: Thu Jun 04 2009 - 05:05:49 EST


On Thu, 4 Jun 2009 04:52:35 -0400 Mike Frysinger <vapier.adi@xxxxxxxxx> wrote:

> my next request was for a 1 letter command set and chaining
> operations. say you want to toggle a gpio line 4 times, having to go
> between kernel and userspace for that seems kind of heavy.
> echo TTTT > value

I was wondering whether "t" would be better than "toggle".

If you're going to do that, wouldn't you need a "d"(elay) too? To
prevent large variations in interval between different platforms. 1
millisec, perhaps.

0d1dd0d1ddd0d1, too.

This could be fun.
--
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/