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>
This commit is contained in:
Svyatoslav Ryhel
2023-04-25 10:57:20 +03:00
committed by Tom Rini
parent 021e303492
commit 5f650fa6ad
7 changed files with 59 additions and 0 deletions

19
include/extcon.h Normal file
View File

@@ -0,0 +1,19 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2023 Svyatoslav Ryhel <clamor95@gmail.com>
*/
#ifndef __EXTCON_H
#define __EXTCON_H
struct udevice;
/**
* struct extcon_uc_plat - Platform data the uclass stores about each device
*
* To be filled
*/
struct extcon_uc_plat {
};
#endif