include: drivers: Add missing __subsystem tags
Add __subsystem tags to driver API structs. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
10dafbfcf4
commit
7ad76e598f
11 changed files with 12 additions and 11 deletions
|
|
@ -99,7 +99,7 @@ typedef int (*clock_control_configure_fn)(const struct device *dev,
|
|||
clock_control_subsys_t sys,
|
||||
void *data);
|
||||
|
||||
struct clock_control_driver_api {
|
||||
__subsystem struct clock_control_driver_api {
|
||||
clock_control on;
|
||||
clock_control off;
|
||||
clock_control_async_on_fn async_on;
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ typedef int (*display_set_orientation_api)(const struct device *dev,
|
|||
* @brief Display driver API
|
||||
* API which a display driver should expose
|
||||
*/
|
||||
struct display_driver_api {
|
||||
__subsystem struct display_driver_api {
|
||||
display_blanking_on_api blanking_on;
|
||||
display_blanking_off_api blanking_off;
|
||||
display_write_api write;
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ __subsystem struct i2c_driver_api {
|
|||
typedef int (*i2c_target_api_register_t)(const struct device *dev);
|
||||
typedef int (*i2c_target_api_unregister_t)(const struct device *dev);
|
||||
|
||||
struct i2c_target_driver_api {
|
||||
__subsystem struct i2c_target_driver_api {
|
||||
i2c_target_api_register_t driver_register;
|
||||
i2c_target_api_unregister_t driver_unregister;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ struct i3c_target_callbacks {
|
|||
int (*stop_cb)(struct i3c_target_config *config);
|
||||
};
|
||||
|
||||
struct i3c_target_driver_api {
|
||||
__subsystem struct i3c_target_driver_api {
|
||||
int (*driver_register)(const struct device *dev);
|
||||
int (*driver_unregister)(const struct device *dev);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ typedef void (*vtd_set_irte_msi_f)(const struct device *dev,
|
|||
typedef bool (*vtd_irte_is_msi_f)(const struct device *dev,
|
||||
uint8_t irte_idx);
|
||||
|
||||
struct vtd_driver_api {
|
||||
__subsystem struct vtd_driver_api {
|
||||
vtd_alloc_entries_f allocate_entries;
|
||||
vtd_remap_msi_f remap_msi;
|
||||
vtd_remap_f remap;
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ typedef int (*led_api_update_channels)(const struct device *dev,
|
|||
*
|
||||
* This is the mandatory API any LED strip driver needs to expose.
|
||||
*/
|
||||
struct led_strip_driver_api {
|
||||
__subsystem struct led_strip_driver_api {
|
||||
led_api_update_rgb update_rgb;
|
||||
led_api_update_channels update_channels;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ typedef int (*lora_api_recv_async)(const struct device *dev, lora_recv_cb cb);
|
|||
typedef int (*lora_api_test_cw)(const struct device *dev, uint32_t frequency,
|
||||
int8_t tx_power, uint16_t duration);
|
||||
|
||||
struct lora_driver_api {
|
||||
__subsystem struct lora_driver_api {
|
||||
lora_api_config config;
|
||||
lora_api_send send;
|
||||
lora_api_send_async send_async;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ enum pcie_reset {
|
|||
|
||||
typedef void (*pcie_ep_reset_callback_t)(void *arg);
|
||||
|
||||
struct pcie_ep_driver_api {
|
||||
__subsystem struct pcie_ep_driver_api {
|
||||
int (*conf_read)(const struct device *dev, uint32_t offset,
|
||||
uint32_t *data);
|
||||
void (*conf_write)(const struct device *dev, uint32_t offset,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct usbc_vbus_driver_api {
|
||||
__subsystem struct usbc_vbus_driver_api {
|
||||
bool (*check_level)(const struct device *dev, enum tc_vbus_level level);
|
||||
int (*measure)(const struct device *dev, int *vbus_meas);
|
||||
int (*discharge)(const struct device *dev, bool enable);
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ typedef int (*video_api_set_signal_t)(const struct device *dev,
|
|||
enum video_endpoint_id ep,
|
||||
struct k_poll_signal *signal);
|
||||
|
||||
struct video_driver_api {
|
||||
__subsystem struct video_driver_api {
|
||||
/* mandatory callbacks */
|
||||
video_api_set_format_t set_format;
|
||||
video_api_get_format_t get_format;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#ifndef ZEPHYR_INCLUDE_SHARED_IRQ_H_
|
||||
#define ZEPHYR_INCLUDE_SHARED_IRQ_H_
|
||||
|
||||
#include <zephyr/device.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
@ -25,7 +26,7 @@ typedef int (*shared_irq_enable_t)(const struct device *dev,
|
|||
typedef int (*shared_irq_disable_t)(const struct device *dev,
|
||||
const struct device *isr_dev);
|
||||
|
||||
struct shared_irq_driver_api {
|
||||
__subsystem struct shared_irq_driver_api {
|
||||
shared_irq_register_t isr_register;
|
||||
shared_irq_enable_t enable;
|
||||
shared_irq_disable_t disable;
|
||||
|
|
|
|||
Loading…
Reference in a new issue