Re: [PATCH 01/19] EDAC: Replace EDAC_DIMM_PTR() macro with edac_get_dimm() function

2019-10-11 Thread Robert Richter
On 11.10.19 06:58:57, Mauro Carvalho Chehab wrote: > Anyway, if you have a good reason to add this idx, please place > it on a separate patch, with a proper description about why > it is needed. Right, see next patch. Will change. -Robert

Re: [PATCH 01/19] EDAC: Replace EDAC_DIMM_PTR() macro with edac_get_dimm() function

2019-10-11 Thread Mauro Carvalho Chehab
Em Thu, 10 Oct 2019 20:25:05 + Robert Richter escreveu: > The EDAC_DIMM_PTR() macro takes 3 arguments from struct mem_ctl_info. > Clean up this interface to only pass the mci struct and replace this > macro with the new function edac_get_dimm(). > > Also introduce the edac_get_dimm_by_index(

[PATCH 01/19] EDAC: Replace EDAC_DIMM_PTR() macro with edac_get_dimm() function

2019-10-10 Thread Robert Richter
The EDAC_DIMM_PTR() macro takes 3 arguments from struct mem_ctl_info. Clean up this interface to only pass the mci struct and replace this macro with the new function edac_get_dimm(). Also introduce the edac_get_dimm_by_index() function for later use. This allows it to get a dimm pointer only by a