mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-10-31 08:21:36 +01:00 
			
		
		
		
	With driver model these functions need a device pointer. Add one even when CONFIG_DM_SCSI is not defined. This avoids having ugly conditional function prototypes, When CONFIG_DM_SCSI is not defined we can just ignore the pointer. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
		
			
				
	
	
		
			27 lines
		
	
	
		
			446 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			446 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2015 Google, Inc
 | |
|  * Written by Simon Glass <sjg@chromium.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier:	GPL-2.0+
 | |
|  *
 | |
|  * This file contains dummy implementations of SCSI functions requried so
 | |
|  * that CONFIG_SCSI can be enabled for sandbox.
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| #include <scsi.h>
 | |
| 
 | |
| int scsi_bus_reset(struct udevice *dev)
 | |
| {
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| void scsi_init(void)
 | |
| {
 | |
| }
 | |
| 
 | |
| int scsi_exec(struct udevice *dev, struct scsi_cmd *pccb)
 | |
| {
 | |
| 	return 0;
 | |
| }
 |