counters: Remove deprecated APIs
Remove support for counter_read and counter_get_max_relative_alarm as they have been deprecated for at least 2 releases. As part of the removal of counter_get_max_relative_alarm remove the code in all counter drivers that implemented the API. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
f3d11cccf4
commit
607469616d
18 changed files with 2 additions and 151 deletions
|
@ -107,13 +107,6 @@ static uint32_t mcux_pit_get_pending_int(const struct device *dev)
|
|||
return ((flags & mask) == mask);
|
||||
}
|
||||
|
||||
static uint32_t mcux_pit_get_max_relative_alarm(const struct device *dev)
|
||||
{
|
||||
const struct mcux_pit_config *config = dev->config;
|
||||
|
||||
return config->info.max_top_value;
|
||||
}
|
||||
|
||||
static void mcux_pit_isr(const struct device *dev)
|
||||
{
|
||||
const struct mcux_pit_config *config = dev->config;
|
||||
|
@ -208,7 +201,6 @@ static const struct counter_driver_api mcux_pit_driver_api = {
|
|||
.cancel_alarm = mcux_pit_cancel_alarm,
|
||||
.get_pending_int = mcux_pit_get_pending_int,
|
||||
.get_top_value = mcux_pit_get_top_value,
|
||||
.get_max_relative_alarm = mcux_pit_get_max_relative_alarm,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue