Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static int pmic_light_open ( struct inode *  inode,
struct file *  file 
) [static]

This function implements the open method on a mc13783 light device.

Parameters:
inode pointer on the node
file pointer on the file
Returns:
This function returns 0.

Definition at line 2636 of file pmic_light.c.

References suspend_flag, suspendq, and swait.

{
      while (suspend_flag == 1) {
            swait++;
            /* Block if the device is suspended */
            if (wait_event_interruptible(suspendq, (suspend_flag == 0))) {
                  return -ERESTARTSYS;
            }
      }
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index