Re: [PATCH] PM / Runtime: Rework RPM get callback routines

2014-11-07 Thread Rafael J. Wysocki
On Wednesday, October 29, 2014 10:58:18 AM Kevin Hilman wrote: > Andrzej Hajda writes: > > > PM uses three separate functions to fetch RPM callbacks. > > These functions uses quite complicated macro in their body. > > The patch replaces these routines with one small macro and > > one helper funct

Re: [PATCH] PM / Runtime: Rework RPM get callback routines

2014-10-29 Thread Kevin Hilman
Andrzej Hajda writes: > PM uses three separate functions to fetch RPM callbacks. > These functions uses quite complicated macro in their body. > The patch replaces these routines with one small macro and > one helper function. > > Signed-off-by: Andrzej Hajda Acked-by: Kevin Hilman -- To unsub

Re: [PATCH] PM / Runtime: Rework RPM get callback routines

2014-10-29 Thread Ulf Hansson
On 17 October 2014 12:58, Andrzej Hajda wrote: > PM uses three separate functions to fetch RPM callbacks. > These functions uses quite complicated macro in their body. > The patch replaces these routines with one small macro and > one helper function. > > Signed-off-by: Andrzej Hajda > --- > Hi,

Re: [PATCH] PM / Runtime: Rework RPM get callback routines

2014-10-18 Thread Pavel Machek
On Fri 2014-10-17 12:58:02, Andrzej Hajda wrote: > PM uses three separate functions to fetch RPM callbacks. > These functions uses quite complicated macro in their body. > The patch replaces these routines with one small macro and > one helper function. > > Signed-off-by: Andrzej Hajda Looks goo

[PATCH] PM / Runtime: Rework RPM get callback routines

2014-10-17 Thread Andrzej Hajda
PM uses three separate functions to fetch RPM callbacks. These functions uses quite complicated macro in their body. The patch replaces these routines with one small macro and one helper function. Signed-off-by: Andrzej Hajda --- Hi, I guess such constructs (offsetof and void* arithmetic) are li