From 60a4bda9d489aa6c1da46ed35a2e7b414ba1ff59 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 9 Mar 2017 13:49:03 -0500 Subject: basecmd: Use oid_ prefix for the oid manipulation functions Consistently use an "oid_" prefix on the oid functions - this makes them similar to other functions with a common prefix. Signed-off-by: Kevin O'Connor --- src/adccmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/adccmds.c') diff --git a/src/adccmds.c b/src/adccmds.c index 49e195ac..81a7fff5 100644 --- a/src/adccmds.c +++ b/src/adccmds.c @@ -4,7 +4,7 @@ // // This file may be distributed under the terms of the GNU GPLv3 license. -#include "basecmd.h" // alloc_oid +#include "basecmd.h" // oid_alloc #include "board/gpio.h" // struct gpio_adc #include "board/irq.h" // irq_disable #include "command.h" // DECL_COMMAND @@ -50,7 +50,7 @@ analog_in_event(struct timer *timer) void command_config_analog_in(uint32_t *args) { - struct analog_in *a = alloc_oid( + struct analog_in *a = oid_alloc( args[0], command_config_analog_in, sizeof(*a)); a->timer.func = analog_in_event; a->pin = gpio_adc_setup(args[1]); @@ -61,7 +61,7 @@ DECL_COMMAND(command_config_analog_in, "config_analog_in oid=%c pin=%u"); void command_query_analog_in(uint32_t *args) { - struct analog_in *a = lookup_oid(args[0], command_config_analog_in); + struct analog_in *a = oid_lookup(args[0], command_config_analog_in); sched_del_timer(&a->timer); gpio_adc_cancel_sample(a->pin); a->next_begin_time = args[1]; -- cgit v1.2.3-70-g09d2