Lines Matching full:mode2
174 u8 ledout_addr, ledout, mask, val, mode2; in pca963x_blink() local
180 mode2 = i2c_smbus_read_byte_data(client, PCA963X_MODE2); in pca963x_blink()
186 if (!(mode2 & PCA963X_MODE2_DMBLNK)) in pca963x_blink()
188 mode2 | PCA963X_MODE2_DMBLNK); in pca963x_blink()
311 s32 mode2; in pca963x_register_leds() local
321 mode2 = i2c_smbus_read_byte_data(client, PCA963X_MODE2); in pca963x_register_leds()
322 if (mode2 < 0) in pca963x_register_leds()
323 return mode2; in pca963x_register_leds()
327 mode2 |= PCA963X_MODE2_OUTDRV; in pca963x_register_leds()
329 mode2 &= ~PCA963X_MODE2_OUTDRV; in pca963x_register_leds()
333 mode2 |= PCA963X_MODE2_INVRT; in pca963x_register_leds()
335 mode2 &= ~PCA963X_MODE2_INVRT; in pca963x_register_leds()
337 ret = i2c_smbus_write_byte_data(client, PCA963X_MODE2, mode2); in pca963x_register_leds()