24 Mar
2014
24 Mar
'14
1:07 p.m.
On 03/24/2014 12:48 PM, Mark Brown wrote:
On Mon, Mar 24, 2014 at 12:40:49PM +0100, Lars-Peter Clausen wrote:
My plan is to let it take a pointer to the component itself. I'm just not too sure about the implementation details yet.
The question there is why you'd ever want to only unregister a single thing that the device registered. devm_ does make this a bit more academic but still.
I you probably wouldn't, but I think it makes the interface cleaner and devm doesn't really care whether we store a pointer to the parent device or a pointer to the component in the devm data.
- Lars