Home
last modified time | relevance | path

Searched refs:pca963x (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/drivers/leds/
Dleds-pca963x.c106 struct pca963x { struct
114 struct pca963x *chip; argument
125 static void pca963x_brightness_work(struct pca963x_led *pca963x) in pca963x_brightness_work() argument
127 u8 ledout_addr = pca963x->chip->chipdef->ledout_base in pca963x_brightness_work()
128 + (pca963x->led_num / 4); in pca963x_brightness_work()
130 int shift = 2 * (pca963x->led_num % 4); in pca963x_brightness_work()
133 mutex_lock(&pca963x->chip->mutex); in pca963x_brightness_work()
134 ledout = i2c_smbus_read_byte_data(pca963x->chip->client, ledout_addr); in pca963x_brightness_work()
135 switch (pca963x->brightness) { in pca963x_brightness_work()
137 i2c_smbus_write_byte_data(pca963x->chip->client, ledout_addr, in pca963x_brightness_work()
[all …]
DMakefile40 obj-$(CONFIG_LEDS_PCA963X) += leds-pca963x.o
/linux-4.1.27/Documentation/devicetree/bindings/leds/
Dpca963x.txt11 Each led is represented as a sub-node of the nxp,pca963x device.