From 952018117ab4daff5fb4500d5ce0143678473ca4 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 29 Oct 2022 19:47:17 -0600 Subject: dm: sandbox: Switch over to using the new host uclass Update the sandbox implementation to use UCLASS_HOST and adjust all the pieces to continue to work: - Update the 'host' command to use the new API - Replace various uses of UCLASS_ROOT with UCLASS_HOST - Disable test_eficonfig since it doesn't work (this should have a unit test to allow this to be debugged) - Update the blk test to use the new API - Drop the old header file Unfortunately it does not seem to be possible to split this change up further. Signed-off-by: Simon Glass --- include/sandboxblockdev.h | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 include/sandboxblockdev.h (limited to 'include') diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h deleted file mode 100644 index 0528f891b12..00000000000 --- a/include/sandboxblockdev.h +++ /dev/null @@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright (c) 2013, Henrik Nordstrom - */ - -#ifndef __SANDBOX_BLOCK_DEV__ -#define __SANDBOX_BLOCK_DEV__ - -/* Maximum number of host devices - see drivers/block/sandbox.c */ -#define SANDBOX_HOST_MAX_DEVICES 4 - -struct host_block_dev { - char *filename; - int fd; -}; - -/** - * host_dev_bind() - Bind or unbind a device - * - * @dev: Device number (0=first slot) - * @filename: Host filename to use, or NULL to unbind - * @removable: true if the block device should mark itself as removable - */ -int host_dev_bind(int dev, char *filename, bool removable); - -int host_get_dev_err(int dev, struct blk_desc **blk_devp); - -#endif -- cgit v1.2.3