Pantelis Antoniou
93bfd61677
mmc: Split mmc struct, rework mmc initialization (v2)
...
The way that struct mmc was implemented was a bit of a mess;
configuration and internal state all jumbled up in a single structure.
On top of that the way initialization is done with mmc_register leads
to a lot of duplicated code in drivers.
Typically the initialization got something like this in every driver.
struct mmc *mmc = malloc(sizeof(struct mmc));
memset(mmc, 0, sizeof(struct mmc);
/* fill in fields of mmc struct */
/* store private data pointer */
mmc_register(mmc);
By using the new mmc_create call one just passes an mmc config struct
and an optional private data pointer like this:
struct mmc = mmc_create(&cfg, priv);
All in tree drivers have been updated to the new form, and expect
mmc_register to go away before long.
Changes since v1:
* Use calloc instead of manually calling memset.
* Mark mmc_register as deprecated.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com >
2014-03-24 12:58:56 +02:00
..
2013-07-24 09:44:38 -04:00
2014-03-07 10:59:06 -05:00
2013-04-01 16:33:52 -04:00
2014-03-17 20:05:50 -06:00
2014-01-24 16:59:07 -05:00
2014-03-04 12:15:29 -05:00
2014-01-24 16:59:07 -05:00
2013-04-01 16:33:52 -04:00
2013-10-09 12:52:16 -05:00
2014-03-04 21:23:42 -05:00
2013-07-24 09:44:38 -04:00
2013-11-21 13:32:43 -06:00
2014-02-03 15:36:14 +09:00
2014-02-07 10:06:24 +09:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2014-03-04 12:15:01 -05:00
2013-07-24 09:44:38 -04:00
2014-02-19 11:10:04 -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-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
2014-02-22 19:30:24 +01: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
2014-02-04 16:32:20 +01:00
2013-07-24 09:44:38 -04:00
2014-03-04 12:15:28 -05:00
2013-11-25 11:43:43 -08:00
2014-03-17 20:05:50 -06:00
2013-11-08 15:25:13 -05:00
2014-02-21 08:42:47 -05:00
2013-04-19 15:03:27 -04:00
2013-12-13 09:18:45 -05:00
2014-02-05 08:04:38 -05:00
2014-01-08 17:24:03 -07:00
2013-07-24 09:44:38 -04:00
2014-03-04 09:41:53 -05:00
2013-07-24 09:45:01 -04:00
2014-03-17 20:05:47 -06:00
2014-03-17 20:05:48 -06:00
2013-10-14 16:06:53 -04:00
2013-10-16 16:15:16 -07:00
2013-12-18 19:53:19 +01:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2014-03-04 12:15:29 -05:00
2014-03-04 12:15:29 -05: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
2014-03-24 12:58:56 +02:00
2013-08-20 09:57:51 -07:00
2014-03-17 20:05:47 -06: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
2014-02-19 09:47:34 -05:00
2013-07-24 09:44:38 -04:00
2014-02-19 09:47:34 -05: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
2014-03-17 20:05:49 -06:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-11-25 11:43:47 -08:00
2013-07-24 09:44:38 -04:00
2014-02-19 09:47:33 -05:00
2013-11-25 11:43:43 -08:00
2014-02-21 11:06:13 -05:00
2014-02-21 11:06:13 -05:00
2013-07-24 09:44:38 -04:00
2014-03-24 12:58:56 +02:00
2014-02-03 08:38:51 -08:00
2013-11-25 11:43:46 -08:00
2013-11-22 17:03:15 -06:00
2013-07-24 09:44:38 -04:00
2014-03-07 14:52:16 -08:00
2013-07-24 09:44:38 -04:00
2013-11-08 20:46:20 +01: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
2014-02-20 06:48:23 +01: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
2014-02-19 10:47:30 -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
2014-03-17 20:05:49 -06: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
2014-02-19 11:10:04 -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-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-11-28 08:28:54 +01:00
2013-09-20 10:30:54 -04:00
2013-07-24 09:44:38 -04:00
2014-03-24 12:58:56 +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-11-09 17:21:01 +01:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2014-03-09 19:19:06 +01:00
2013-11-22 16:57:13 -06:00
2014-03-04 09:27:35 -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-04-12 07:55:08 +02:00
2014-03-17 20:05:49 -06:00
2013-10-20 23:42:39 +02:00
2013-10-14 16:06:53 -04:00
2014-01-08 17:24:03 -07: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-11-09 17:21:01 +01:00
2013-11-09 17:21:01 +01:00
2013-11-09 17:21:01 +01:00
2013-07-24 09:44:38 -04:00
2013-12-02 08:38:28 -05:00
2013-07-24 09:44:38 -04:00
2014-03-07 10:59:06 -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-07-24 09:44:38 -04:00
2014-01-08 17:24:03 -07:00
2014-02-19 09:47:34 -05:00
2013-11-12 10:08:48 +01:00
2013-07-24 09:44:38 -04:00
2014-03-24 12:58:56 +02: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
2014-01-09 12:47:15 +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
2014-03-17 20:05:49 -06: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
2014-03-07 10:59:06 -05:00
2014-01-12 21:40:22 +05:30
2014-02-19 10:47:43 -05: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-11-08 09:39:13 -05: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-11-22 17:03:17 -06: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-12-04 08:11:28 -05: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
2014-03-12 17:04:31 -04:00
2014-01-13 12:29:12 +01:00
2013-11-08 20:46:19 +01:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2014-03-10 18:53:36 +01: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-11-08 09:41:37 -05: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-12-16 08:59:05 -05: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
2014-02-06 10:08:14 +01:00