aboutsummaryrefslogtreecommitdiff
path: root/nuttx/drivers/mtd/at45db.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-25 18:41:10 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-07-25 18:41:10 +0000
commitcf48e3c73f884d28b715db676a6777c32af702dc (patch)
treee1361e761b01704d1ad41b9f89c9501a42610b4a /nuttx/drivers/mtd/at45db.c
parentca8620083e4f2c28d7b65d97880a42d1d68d1700 (diff)
downloadpx4-firmware-cf48e3c73f884d28b715db676a6777c32af702dc.tar.gz
px4-firmware-cf48e3c73f884d28b715db676a6777c32af702dc.tar.bz2
px4-firmware-cf48e3c73f884d28b715db676a6777c32af702dc.zip
Add support for the TI PGA11x amplifier/multiplexer
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4977 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/drivers/mtd/at45db.c')
-rw-r--r--nuttx/drivers/mtd/at45db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/mtd/at45db.c b/nuttx/drivers/mtd/at45db.c
index 037cc5e76..f4a695de0 100644
--- a/nuttx/drivers/mtd/at45db.c
+++ b/nuttx/drivers/mtd/at45db.c
@@ -276,7 +276,7 @@ static void at45db_lock(struct at45db_dev_s *priv)
* the SPI buss. We will retain that exclusive access until the bus is unlocked.
*/
- SPI_LOCK(priv->spi, true);
+ (void)SPI_LOCK(priv->spi, true);
/* After locking the SPI bus, the we also need call the setfrequency, setbits, and
* setmode methods to make sure that the SPI is properly configured for the device.
@@ -295,7 +295,7 @@ static void at45db_lock(struct at45db_dev_s *priv)
static inline void at45db_unlock(struct at45db_dev_s *priv)
{
- SPI_LOCK(priv->spi, false);
+ (void)SPI_LOCK(priv->spi, false);
}
/************************************************************************************