api: counter: rename counter_disable_channel_alarm()
The function to set channel alarm is called counter_set_channel_alarm. To match the name of the function performing the reverse operation this commit renames counter_disable_channel_alarm() function to counter_cancel_channel_alarm(). Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
36e437f537
commit
8a86b5aaac
7 changed files with 20 additions and 20 deletions
|
@ -119,7 +119,7 @@ static int mcux_rtc_set_alarm(struct device *dev, u8_t chan_id,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int mcux_rtc_disable_alarm(struct device *dev, u8_t chan_id)
|
||||
static int mcux_rtc_cancel_alarm(struct device *dev, u8_t chan_id)
|
||||
{
|
||||
struct mcux_rtc_data *data = dev->driver_data;
|
||||
|
||||
|
@ -236,7 +236,7 @@ static const struct counter_driver_api mcux_rtc_driver_api = {
|
|||
.stop = mcux_rtc_stop,
|
||||
.read = mcux_rtc_read,
|
||||
.set_alarm = mcux_rtc_set_alarm,
|
||||
.disable_alarm = mcux_rtc_disable_alarm,
|
||||
.cancel_alarm = mcux_rtc_cancel_alarm,
|
||||
.set_top_value = mcux_rtc_set_top_value,
|
||||
.get_pending_int = mcux_rtc_get_pending_int,
|
||||
.get_top_value = mcux_rtc_get_top_value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue