On Sun, 2004-12-05 at 22:02 +0100, Pavel Machek wrote: > I do not see it being that easy. If I have long and ugly suspend > routine (similar to radeonfb), and want to base some detail on > pm_message.flags, I can just do if (pm_message.flags) ... . > > With table approach, I'd have to add new state to the table (say > duplicate 2 into 3), and than fix all if(state == 2) to if ((state == > 2) || (state == 3)). > > I guess it could work for simple drivers, through. Oh well, we talk about this later, my main idea is to provide something for the sys interface but let's get the main system suspend related callbacks in now first. Ben.