Files
BPI-CM9-Linux/aml-comp/kernel/aml-6.12/include/linux/usb/android_configfs_uevent.h
T

28 lines
584 B
C
Raw Normal View History

2026-08-13 11:28:40 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright 2024 Google LLC
*/
#ifndef _ANDROID_USB_CONFIGFS_UEVENT_H
#define _ANDROID_USB_CONFIGFS_UEVENT_H
#ifdef CONFIG_ANDROID_USB_CONFIGFS_UEVENT
#include <linux/device.h>
#include <linux/workqueue.h>
#include <linux/mutex.h>
struct android_uevent_opts {
struct device *dev;
int device_id;
bool connected;
bool configured;
bool sw_connected;
struct work_struct work;
struct ida function_ida;
};
#else
struct android_uevent_opts {};
#endif /* CONFIG_ANDROID_USB_CONFIGFS_UEVENT */
#endif /* _ANDROID_USB_CONFIGFS_UEVENT_H */