Re: [PATCH 2/2] driver core: add helper for deferred probe reason setting

2021-03-22 Thread Andrzej Hajda
W dniu 18.03.2021 o 08:39, Ahmad Fatoum pisze: > We now have three places within the same file doing the same operation > of freeing this pointer and setting it anew. A helper make this > arguably easier to read, so add one. > > Signed-off-by: Ahmad Fatoum Reviewed-by: Andrzej Hajda Regards

[PATCH 2/2] driver core: add helper for deferred probe reason setting

2021-03-18 Thread Ahmad Fatoum
We now have three places within the same file doing the same operation of freeing this pointer and setting it anew. A helper make this arguably easier to read, so add one. Signed-off-by: Ahmad Fatoum --- drivers/base/dd.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-)