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

static int mxci2c_resume ( struct platform_device *  pdev  )  [static]

This function is called to bring the I2C adapter back from a low power state. Refer to the document driver-model/driver.txt in the kernel source tree for more information.

pdev the device structure used to give information on which I2C to resume
The function returns 0 on success and -1 on failure

Definition at line 630 of file mxc_i2c.c.

References mxc_i2c_device::adap, gpio_i2c_active(), and mxc_i2c_device::low_power.

      mxc_i2c_device *mxcdev = platform_get_drvdata(pdev);

      if (mxcdev == NULL)
            return -1;

      mxcdev->low_power = false;

      return 0;

Generated by  Doxygen 1.6.0   Back to index