From f750da0d1d0dd71970ccd2b99f8d6412cf4a23ec Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Fri, 20 Feb 2009 15:38:49 -0800 Subject: [PATCH] --- yaml --- r: 131585 b: refs/heads/master c: 01b24fee285b098c74318a8be801ef3711ec18d7 h: refs/heads/master i: 131583: 6e8b1d1241e9ff2723db50bebb17dbd1dde73969 v: v3 --- [refs] | 2 +- trunk/include/linux/spi/spi_bitbang.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a0d642227f0e..ce1ab21600b9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f6fcba7014f9cc535fa75ef98c008b24e49e2212 +refs/heads/master: 01b24fee285b098c74318a8be801ef3711ec18d7 diff --git a/trunk/include/linux/spi/spi_bitbang.h b/trunk/include/linux/spi/spi_bitbang.h index bf8de281b4ed..eed4254bd503 100644 --- a/trunk/include/linux/spi/spi_bitbang.h +++ b/trunk/include/linux/spi/spi_bitbang.h @@ -83,6 +83,13 @@ extern int spi_bitbang_stop(struct spi_bitbang *spi); * int getmiso(struct spi_device *); * void spidelay(unsigned); * + * setsck()'s is_on parameter is a zero/nonzero boolean. + * + * setmosi()'s is_on parameter is a zero/nonzero boolean. + * + * getmiso() is required to return 0 or 1 only. Any other value is invalid + * and will result in improper operation. + * * A non-inlined routine would call bitbang_txrx_*() routines. The * main loop could easily compile down to a handful of instructions, * especially if the delay is a NOP (to run at peak speed).