Skip to content

Remove adc_enable/adc_disable functions #3980

@zephyrbot

Description

@zephyrbot

Reported by Piotr Mienkowski:

adc_enable/adc_disable functions that belong to the adc driver API are redundant / conflict with Zephyr's power management subsystem. These functions should be removed.

As stated by [~tobur] on zephyr-devel list: "ADC API was designed some months before PM one, and was not revised once the later came in."

At first the two functions will be deprecated. They will be removed in a later Zephyr release.

Following drivers implement currently adc_enable/adc_disable functions and need to be reworked:

  • drivers/adc/adc_dw.c
  • drivers/adc/adc_qmsi.c
  • drivers/adc/adc_qmsi_ss.c

(Imported from Jira ZEP-2550)

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementChanges/Updates/Additions to existing featuresarea: ADCAnalog-to-Digital Converter (ADC)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions