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

static int adv7180_write_reg ( u8  reg,
u8  val 
) [static]

Write one register of a ADV7180 i2c slave device.

*reg register in the device we wish to access.
0 if success, an error code otherwise.

Definition at line 219 of file adv7180.c.

References adv7180_data, and sensor::i2c_client.

Referenced by adv7180_hard_reset(), ioctl_s_ctrl(), and ioctl_s_power().

      if (i2c_smbus_write_byte_data(adv7180_data.i2c_client, reg, val) < 0) {
                  "%s:write reg error:reg=%2x,val=%2x\n", __func__,
                  reg, val);
            return -1;
      return 0;

Generated by  Doxygen 1.6.0   Back to index