lkml.org 
[lkml]   [2009]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC/RFT] serio - switch to using dev_pm_ops
From
>  drivers/input/serio/serio.c |   30 ++++++++++++++++--------------
> 1 files changed, 16 insertions(+), 14 deletions(-)

> - if (!serio->suspended && state.event == PM_EVENT_SUSPEND)
> - serio_cleanup(serio);
> -
> - serio->suspended = state.event == PM_EVENT_SUSPEND ||
> - state.event == PM_EVENT_FREEZE;

> - if (serio->suspended) {
> - serio->suspended = false;
> - serio_queue_event(serio, NULL, SERIO_RECONNECT_PORT);
> - }

It looks like you should be able to remove the suspended field of
struct serio. Or is it used somewhere else?

Regards
Alan


\
 
 \ /
  Last update: 2009-07-21 23:51    [W:0.044 / U:56.568 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site