Lines Matching +full:0 +full:x56
23 { 0, 1, 0x00 }, /* 0x00 AAT2870_BL_CH_EN */
24 { 0, 1, 0x16 }, /* 0x01 AAT2870_BLM */
25 { 0, 1, 0x16 }, /* 0x02 AAT2870_BLS */
26 { 0, 1, 0x56 }, /* 0x03 AAT2870_BL1 */
27 { 0, 1, 0x56 }, /* 0x04 AAT2870_BL2 */
28 { 0, 1, 0x56 }, /* 0x05 AAT2870_BL3 */
29 { 0, 1, 0x56 }, /* 0x06 AAT2870_BL4 */
30 { 0, 1, 0x56 }, /* 0x07 AAT2870_BL5 */
31 { 0, 1, 0x56 }, /* 0x08 AAT2870_BL6 */
32 { 0, 1, 0x56 }, /* 0x09 AAT2870_BL7 */
33 { 0, 1, 0x56 }, /* 0x0A AAT2870_BL8 */
34 { 0, 1, 0x00 }, /* 0x0B AAT2870_FLR */
35 { 0, 1, 0x03 }, /* 0x0C AAT2870_FM */
36 { 0, 1, 0x03 }, /* 0x0D AAT2870_FS */
37 { 0, 1, 0x10 }, /* 0x0E AAT2870_ALS_CFG0 */
38 { 0, 1, 0x06 }, /* 0x0F AAT2870_ALS_CFG1 */
39 { 0, 1, 0x00 }, /* 0x10 AAT2870_ALS_CFG2 */
40 { 1, 0, 0x00 }, /* 0x11 AAT2870_AMB */
41 { 0, 1, 0x00 }, /* 0x12 AAT2870_ALS0 */
42 { 0, 1, 0x00 }, /* 0x13 AAT2870_ALS1 */
43 { 0, 1, 0x00 }, /* 0x14 AAT2870_ALS2 */
44 { 0, 1, 0x00 }, /* 0x15 AAT2870_ALS3 */
45 { 0, 1, 0x00 }, /* 0x16 AAT2870_ALS4 */
46 { 0, 1, 0x00 }, /* 0x17 AAT2870_ALS5 */
47 { 0, 1, 0x00 }, /* 0x18 AAT2870_ALS6 */
48 { 0, 1, 0x00 }, /* 0x19 AAT2870_ALS7 */
49 { 0, 1, 0x00 }, /* 0x1A AAT2870_ALS8 */
50 { 0, 1, 0x00 }, /* 0x1B AAT2870_ALS9 */
51 { 0, 1, 0x00 }, /* 0x1C AAT2870_ALSA */
52 { 0, 1, 0x00 }, /* 0x1D AAT2870_ALSB */
53 { 0, 1, 0x00 }, /* 0x1E AAT2870_ALSC */
54 { 0, 1, 0x00 }, /* 0x1F AAT2870_ALSD */
55 { 0, 1, 0x00 }, /* 0x20 AAT2870_ALSE */
56 { 0, 1, 0x00 }, /* 0x21 AAT2870_ALSF */
57 { 0, 1, 0x00 }, /* 0x22 AAT2870_SUB_SET */
58 { 0, 1, 0x00 }, /* 0x23 AAT2870_SUB_CTRL */
59 { 0, 1, 0x00 }, /* 0x24 AAT2870_LDO_AB */
60 { 0, 1, 0x00 }, /* 0x25 AAT2870_LDO_CD */
61 { 0, 1, 0x00 }, /* 0x26 AAT2870_LDO_EN */
97 dev_err(aat2870->dev, "Invalid address, 0x%02x\n", addr); in __aat2870_read()
107 if (ret < 0) in __aat2870_read()
113 if (ret < 0) in __aat2870_read()
119 dev_dbg(aat2870->dev, "read: addr=0x%02x, val=0x%02x\n", addr, *val); in __aat2870_read()
120 return 0; in __aat2870_read()
129 dev_err(aat2870->dev, "Invalid address, 0x%02x\n", addr); in __aat2870_write()
134 dev_err(aat2870->dev, "Address 0x%02x is not writeable\n", in __aat2870_write()
139 msg[0] = addr; in __aat2870_write()
142 if (ret < 0) in __aat2870_write()
149 dev_dbg(aat2870->dev, "write: addr=0x%02x, val=0x%02x\n", addr, val); in __aat2870_write()
150 return 0; in __aat2870_write()
201 if (aat2870->en_pin >= 0) in aat2870_enable()
209 if (aat2870->en_pin >= 0) in aat2870_disable()
210 gpio_set_value(aat2870->en_pin, 0); in aat2870_disable()
212 aat2870->is_enable = 0; in aat2870_disable()
219 ssize_t count = 0; in aat2870_dump_reg()
223 for (addr = 0; addr < AAT2870_REG_NUM; addr++) { in aat2870_dump_reg()
224 count += snprintf(buf + count, PAGE_SIZE - count, "0x%02x: ", addr); in aat2870_dump_reg()
229 if (ret == 0) in aat2870_dump_reg()
231 "0x%02x", val); in aat2870_dump_reg()
263 if (ret >= 0) in aat2870_reg_read_file()
287 buf[buf_size] = 0; in aat2870_reg_write_file()
297 dev_err(aat2870->dev, "Invalid address, 0x%lx\n", addr); in aat2870_reg_write_file()
340 int ret = 0; in aat2870_i2c_probe()
353 if (pdata->en_pin < 0) in aat2870_i2c_probe()
369 if (aat2870->en_pin >= 0) { in aat2870_i2c_probe()
372 if (ret < 0) { in aat2870_i2c_probe()
381 for (i = 0; i < pdata->num_subdevs; i++) { in aat2870_i2c_probe()
382 for (j = 0; j < ARRAY_SIZE(aat2870_devs); j++) { in aat2870_i2c_probe()
393 ret = mfd_add_devices(aat2870->dev, 0, aat2870_devs, in aat2870_i2c_probe()
394 ARRAY_SIZE(aat2870_devs), NULL, 0, NULL); in aat2870_i2c_probe()
395 if (ret != 0) { in aat2870_i2c_probe()
402 return 0; in aat2870_i2c_probe()
416 return 0; in aat2870_i2c_suspend()
429 for (i = 0; i < AAT2870_REG_NUM; i++) { in aat2870_i2c_resume()
435 return 0; in aat2870_i2c_resume()
442 { "aat2870", 0 },