mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	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>
		
			
				
	
	
		
			17 lines
		
	
	
		
			328 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 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),
 | 
						|
};
 |