Przemyslaw Marczak
93c813b3ac
usb: ums: code refactoring to improve reusability on other boards.
...
This patch introduces some cleanups to ums code. Changes:
ums common:
- introduce UMS_START_SECTOR and UMS_NUM_SECTORS as defined in
usb_mass_storage.h both default values as 0 if board config
doesn't define them
common cleanup changes:
- change name of struct "ums_board_info" to "ums"
- "ums_device" fields are moved to struct ums and "dev_num" is removed
- change function name: board_ums_init to ums_init
- remove "extern" prefixes from usb_mass_storage.h
cmd_usb_mass_storage:
- change error() to printf() if need to print info message
- change return values to command_ret_t type at ums command code
- add command usage string
Changes v2:
ums common:
- always returns number of read/write sectors
- coding style clean-up
ums gadget:
- calculate amount of read/write from device returned value.
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com >
Cc: Marek Vasut <marek.vasut@gmail.com >
2013-11-08 20:46:19 +01:00
..
2013-07-24 09:44:38 -04:00
2013-11-04 11:06:16 -05:00
2013-04-01 16:33:52 -04:00
2013-11-06 22:59:08 +08:00
2013-07-25 08:51:51 -04:00
2013-04-01 16:33:52 -04:00
2013-10-09 12:52:16 -05:00
2013-10-20 23:42:41 +02:00
2013-07-24 09:44:38 -04:00
2013-07-30 09:11:54 +02:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-24 09:35:09 -07:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-09-06 13:09:07 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-19 15:34:13 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-15 18:38:36 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-06-11 22:01:45 +02:00
2013-04-28 11:07:40 +02:00
2013-04-19 15:03:27 -04:00
2013-03-27 15:30:11 -04:00
2013-11-04 11:05:58 -05:00
2013-07-24 09:44:38 -04:00
2013-07-26 16:39:11 -04:00
2013-07-24 09:45:01 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-16 16:15:16 -07:00
2013-10-20 23:42:40 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-31 09:55:33 +02:00
2013-08-20 09:57:51 -07:00
2013-06-26 10:07:11 -04:00
2013-08-12 23:32:20 +02:00
2013-08-19 15:45:35 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-15 17:06:13 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-05-10 19:04:50 -04:00
2013-10-20 23:42:38 +02:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-24 09:35:59 -07:00
2013-07-24 09:44:38 -04:00
2013-10-07 15:54:18 -04:00
2013-07-24 09:44:38 -04:00
2013-08-20 09:47:26 -07:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-14 11:29:51 -07:00
2013-07-24 09:44:38 -04:00
2013-10-20 23:42:41 +02:00
2013-10-14 16:06:53 -04:00
2013-07-25 08:51:48 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-17 07:20:25 +02:00
2013-09-24 09:10:33 -04:00
2013-07-24 09:44:38 -04:00
2013-07-25 08:51:51 -04:00
2013-08-31 15:26:52 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:45:01 -04:00
2013-09-20 10:29:48 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-04-01 16:33:52 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-06-24 19:11:16 -05:00
2013-09-20 10:30:54 -04:00
2013-07-24 09:44:38 -04:00
2013-10-31 09:55:33 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-08-20 09:57:51 -07:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-08-19 12:34:20 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-04-12 07:55:08 +02:00
2013-07-24 09:44:38 -04:00
2013-10-20 23:42:39 +02:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-25 08:51:48 -04:00
2013-10-16 16:15:17 -07:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-05-01 11:17:21 -04:00
2013-07-24 09:44:38 -04:00
2013-09-17 20:03:43 +03:00
2013-07-24 09:45:01 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-20 11:35:24 -04:00
2013-10-17 09:43:25 +09:00
2013-07-24 09:44:38 -04:00
2013-05-01 16:24:00 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-16 00:14:00 +05:30
2013-07-24 09:44:38 -04:00
2013-07-08 20:21:24 +02:00
2013-07-24 09:44:38 -04:00
2013-08-13 08:38:29 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-30 09:21:42 -04:00
2013-10-20 23:42:41 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-04-11 15:52:54 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-10-20 23:42:38 +02:00
2013-07-24 09:44:38 -04:00
2013-11-08 20:46:19 +01:00
2013-10-20 23:45:26 +02:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-10-30 10:48:37 +01:00
2013-10-14 16:06:53 -04:00
2013-08-12 22:28:41 +02:00
2013-08-12 22:34:09 +02:00
2013-08-28 11:44:59 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:45:01 -04:00
2013-08-12 08:01:50 +02:00