Lines Matching +full:0 +full:x5400
23 #define MAX17040_VCELL 0x02
24 #define MAX17040_SOC 0x04
25 #define MAX17040_MODE 0x06
26 #define MAX17040_VER 0x08
27 #define MAX17040_CONFIG 0x0C
28 #define MAX17040_STATUS 0x1A
29 #define MAX17040_CMD 0xFE
34 #define MAX17040_RCOMP_DEFAULT 0x9700
36 #define MAX17040_ATHD_MASK 0x3f
37 #define MAX17040_ALSC_MASK 0x40
39 #define MAX17040_STATUS_HD_MASK 0x1000
40 #define MAX17040_STATUS_SC_MASK 0x2000
41 #define MAX17040_CFG_RCOMP_MASK 0xff00
67 .reset_val = 0x0054,
71 .has_low_soc_alert = 0,
73 .has_soc_alert = 0,
76 .reset_val = 0x0054,
80 .has_low_soc_alert = 0,
82 .has_soc_alert = 0,
85 .reset_val = 0x0054,
91 .has_soc_alert = 0,
94 .reset_val = 0x0054,
100 .has_soc_alert = 0,
103 .reset_val = 0x5400,
104 .vcell_shift = 0,
112 .reset_val = 0x5400,
113 .vcell_shift = 0,
121 .reset_val = 0x5400,
122 .vcell_shift = 0,
127 .has_soc_alert = 0,
130 .reset_val = 0x5400,
131 .vcell_shift = 0,
136 .has_soc_alert = 0,
173 MAX17040_ALSC_MASK, enable ? MAX17040_ALSC_MASK : 0); in max17040_set_soc_alert()
179 0xffff : MAX17040_CFG_RCOMP_MASK; in max17040_set_rcomp()
241 if (chip->low_soc_alert <= 0 || in max17040_get_of_data()
252 chip->rcomp = rcomp_len == 2 ? rcomp[0] << 8 | rcomp[1] : in max17040_get_of_data()
253 rcomp[0] << 8; in max17040_get_of_data()
254 } else if (rcomp_len > 0) { in max17040_get_of_data()
259 return 0; in max17040_get_of_data()
357 return 0; in max17040_prop_writeable()
419 return 0; in max17040_get_property()
501 if (ret < 0) in max17040_probe()
503 dev_dbg(&chip->client->dev, "MAX17040 Fuel-Gauge Ver 0x%x\n", ret); in max17040_probe()
542 client->irq = 0; in max17040_probe()
548 return 0; in max17040_probe()
560 max17040_set_soc_alert(chip, 0); in max17040_suspend()
567 return 0; in max17040_suspend()
583 return 0; in max17040_resume()