cc2520: Remove useless gpio logic

cc2520 does not need to clear any gpio interruption as it does not deal
with the low level gpio hardware directly.

Change-Id: Ic568e817b23b879cdf7da791417a4a6e1f95d34a
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2016-02-17 13:15:41 +01:00
commit 988c6e9e08
2 changed files with 0 additions and 8 deletions

View file

@ -111,7 +111,6 @@ static bool init_ok;
#define CC2520_ENABLE_FIFOP_INT() cc2520_enable_fifop_int(1)
#define CC2520_DISABLE_FIFOP_INT() cc2520_enable_fifop_int(0)
#define CC2520_FIFOP_INT_INIT() cc2520_init_fifop_int(cc2520_gpio_int_handler)
#define CC2520_CLEAR_FIFOP_INT() cc2520_clear_fifop_int()
#define SET_VREG_ACTIVE() cc2520_set_vreg(1)
#define SET_VREG_INACTIVE() cc2520_set_vreg(0)
#define SET_RESET_ACTIVE() cc2520_set_reset(0)
@ -957,8 +956,6 @@ static void cc2520_gpio_int_handler(struct device *port, uint32_t pin)
* instance
*/
CC2520_CLEAR_FIFOP_INT();
nano_isr_sem_give(&info->read_lock);
}

View file

@ -286,11 +286,6 @@ static inline void cc2520_enable_fifop_int(int enable)
}
}
static inline void cc2520_clear_fifop_int(void)
{
/* Do nothing */
}
static inline void cc2520_init_fifop_int(cc2520_gpio_int_handler_t handler)
{
gpio_set_callback(CC2520_GPIO(FIFOP), handler);