From 931f94dca30b04f8303acdcfd08436e61a491a92 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 4 Dec 2006 15:36:51 +0000 Subject: Generalised the SPI abstraction layer to also be able to handle interfaces that don't provide the full flexibility of a bit-bashing interface. Temporarily hacked rtl8139.c to use the new interface. --- src/drivers/bitbash/bitbash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers/bitbash/bitbash.c') diff --git a/src/drivers/bitbash/bitbash.c b/src/drivers/bitbash/bitbash.c index 19add4ce0..ec94feeea 100644 --- a/src/drivers/bitbash/bitbash.c +++ b/src/drivers/bitbash/bitbash.c @@ -37,7 +37,7 @@ */ void write_bit ( struct bit_basher *basher, unsigned int bit_id, unsigned long data ) { - basher->write ( basher, bit_id, ( data ? -1UL : 0 ) ); + basher->op->write ( basher, bit_id, ( data ? -1UL : 0 ) ); } /** @@ -52,5 +52,5 @@ void write_bit ( struct bit_basher *basher, unsigned int bit_id, * it needs to apply. */ int read_bit ( struct bit_basher *basher, unsigned int bit_id ) { - return ( basher->read ( basher, bit_id ) ? -1UL : 0 ); + return ( basher->op->read ( basher, bit_id ) ? -1UL : 0 ); } -- cgit v1.2.3-55-g7522