ums: support block devices not MMC devices

The USB Mass Storage function could equally well support a SATA device
as support an MMC device. Update struct ums to contain a block device
descriptor, not an MMC device descriptor.

Cc: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
This commit is contained in:
Stephen Warren
2014-05-05 10:40:11 -06:00
committed by Lukasz Majewski
parent 66b88b07cd
commit ce19d97401
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
#define __USB_MASS_STORAGE_H__
#define SECTOR_SIZE 0x200
#include <mmc.h>
#include <part.h>
#include <linux/usb/composite.h>
#ifndef UMS_START_SECTOR
@@ -31,7 +31,7 @@ struct ums {
unsigned int start_sector;
unsigned int num_sectors;
const char *name;
struct mmc *mmc;
block_dev_desc_t *block_dev;
};
extern struct ums *ums;