u-boot/drivers/extcon/extcon-uclass.c
Svyatoslav Ryhel 5f650fa6ad dm: extcon: add an uclass for extcon
Add a new simple uclass for extcon. Currently all setup is done
in the probe. Uclass struct and ops are empty for now.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-05-02 14:23:34 -04:00

16 lines
328 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2023 Svyatoslav Ryhel <clamor95@gmail.com>
*/
#define LOG_CATEGORY UCLASS_EXTCON
#include <common.h>
#include <extcon.h>
#include <dm.h>
UCLASS_DRIVER(extcon) = {
.id = UCLASS_EXTCON,
.name = "extcon",
.per_device_plat_auto = sizeof(struct extcon_uc_plat),
};