Skip to content

Commit

Permalink
SQUASHME: make private API static
Browse files Browse the repository at this point in the history
  • Loading branch information
LudwigKnuepfer committed Sep 26, 2014
1 parent 2cb5976 commit 3b9c60f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/pir/pir.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
* internal API declaration
**********************************************************************/

int pir_activate_int(pir_t *dev);
void pir_callback(void *dev);
void pir_send_msg(pir_t *dev, pir_event_t event);
static int pir_activate_int(pir_t *dev);
static void pir_callback(void *dev);
static void pir_send_msg(pir_t *dev, pir_event_t event);

/**********************************************************************
* public API implementation
Expand Down Expand Up @@ -75,7 +75,7 @@ int pir_register_thread(pir_t *dev)
* internal API implementation
**********************************************************************/

void pir_send_msg(pir_t *dev, pir_event_t event)
static void pir_send_msg(pir_t *dev, pir_event_t event)
{
DEBUG("pir_send_msg\n");
msg_t m = { .type = event, .content.ptr = (char*) dev, };
Expand All @@ -96,7 +96,7 @@ void pir_send_msg(pir_t *dev, pir_event_t event)
}
}

void pir_callback(void *arg)
static void pir_callback(void *arg)
{
DEBUG("pir_callback: %p\n", arg);
pir_t *dev = (pir_t*) arg;
Expand All @@ -105,7 +105,7 @@ void pir_callback(void *arg)
}
}

int pir_activate_int(pir_t *dev)
static int pir_activate_int(pir_t *dev)
{
int res = gpio_init_int(dev->gpio_dev, GPIO_NOPULL, GPIO_BOTH, pir_callback, dev);
DEBUG("pir_activate_int: %p -> %i\n", dev, res);
Expand Down

0 comments on commit 3b9c60f

Please sign in to comment.