Re: [PATCH] mmc: pwrseq: simplify alloc/free hooks

2015-03-05 Thread Ulf Hansson
On 12 February 2015 at 05:36, Alexandre Courbot wrote: > The alloc() and free() hooks required each pwrseq implementation to set > host->pwrseq themselves. This is error-prone and could be done at a > higher level if alloc() was changed to return a pointer to a struct > mmc_pwrseq instead of an

Re: [PATCH] mmc: pwrseq: simplify alloc/free hooks

2015-03-05 Thread Ulf Hansson
On 12 February 2015 at 05:36, Alexandre Courbot acour...@nvidia.com wrote: The alloc() and free() hooks required each pwrseq implementation to set host-pwrseq themselves. This is error-prone and could be done at a higher level if alloc() was changed to return a pointer to a struct mmc_pwrseq

Re: [PATCH] mmc: pwrseq: simplify alloc/free hooks

2015-02-25 Thread Alexandre Courbot
Chris, Ulf, gentle ping? On Thu, Feb 12, 2015 at 1:36 PM, Alexandre Courbot wrote: > The alloc() and free() hooks required each pwrseq implementation to set > host->pwrseq themselves. This is error-prone and could be done at a > higher level if alloc() was changed to return a pointer to a struct

Re: [PATCH] mmc: pwrseq: simplify alloc/free hooks

2015-02-25 Thread Alexandre Courbot
Chris, Ulf, gentle ping? On Thu, Feb 12, 2015 at 1:36 PM, Alexandre Courbot acour...@nvidia.com wrote: The alloc() and free() hooks required each pwrseq implementation to set host-pwrseq themselves. This is error-prone and could be done at a higher level if alloc() was changed to return a

[PATCH] mmc: pwrseq: simplify alloc/free hooks

2015-02-11 Thread Alexandre Courbot
The alloc() and free() hooks required each pwrseq implementation to set host->pwrseq themselves. This is error-prone and could be done at a higher level if alloc() was changed to return a pointer to a struct mmc_pwrseq instead of an error code. This patch performs this change and moves the burden

[PATCH] mmc: pwrseq: simplify alloc/free hooks

2015-02-11 Thread Alexandre Courbot
The alloc() and free() hooks required each pwrseq implementation to set host-pwrseq themselves. This is error-prone and could be done at a higher level if alloc() was changed to return a pointer to a struct mmc_pwrseq instead of an error code. This patch performs this change and moves the burden