blob: 84004ee215f0bef956accacb5f24bb6807610274 [file]
/* 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 */