Tiva I2C: Correct an in conditional compilation

This commit is contained in:
Gregory Nutt
2017-05-13 14:01:42 -06:00
parent 6e4918c557
commit 27805315f4
+2 -2
View File
@@ -1,7 +1,7 @@
/************************************************************************************ /************************************************************************************
* arch/arm/src/tiva/tiva_i2c.c * arch/arm/src/tiva/tiva_i2c.c
* *
* Copyright (C) 2014-2016 Gregory Nutt. All rights reserved. * Copyright (C) 2014-2017 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* The basic structure of this driver derives in spirit (if nothing more) from the * The basic structure of this driver derives in spirit (if nothing more) from the
@@ -1378,7 +1378,7 @@ static int tiva_i2c_process(struct tiva_i2c_priv_s *priv, uint32_t status)
* *
************************************************************************************/ ************************************************************************************/
#if !defined(CONFIG_I2C_POLLED) && defined(CONFIG_TIVA_I2C0) #ifndef CONFIG_I2C_POLLED
static int tiva_i2c_interrupt(int irq, void *context, void *arg) static int tiva_i2c_interrupt(int irq, void *context, void *arg)
{ {
struct tiva_i2c_priv_s *priv = (struct tiva_i2c_priv_s *)arg; struct tiva_i2c_priv_s *priv = (struct tiva_i2c_priv_s *)arg;