Lines Matching +full:0 +full:x5400
22 #define MAX17040_VCELL 0x02
23 #define MAX17040_SOC 0x04
24 #define MAX17040_MODE 0x06
25 #define MAX17040_VER 0x08
26 #define MAX17040_CONFIG 0x0C
27 #define MAX17040_STATUS 0x1A
28 #define MAX17040_CMD 0xFE
33 #define MAX17040_RCOMP_DEFAULT 0x9700
35 #define MAX17040_ATHD_MASK 0x3f
36 #define MAX17040_ALSC_MASK 0x40
38 #define MAX17040_STATUS_HD_MASK 0x1000
39 #define MAX17040_STATUS_SC_MASK 0x2000
40 #define MAX17040_CFG_RCOMP_MASK 0xff00
66 .reset_val = 0x0054,
70 .has_low_soc_alert = 0,
72 .has_soc_alert = 0,
75 .reset_val = 0x0054,
79 .has_low_soc_alert = 0,
81 .has_soc_alert = 0,
84 .reset_val = 0x0054,
90 .has_soc_alert = 0,
93 .reset_val = 0x0054,
99 .has_soc_alert = 0,
102 .reset_val = 0x5400,
103 .vcell_shift = 0,
111 .reset_val = 0x5400,
112 .vcell_shift = 0,
120 .reset_val = 0x5400,
121 .vcell_shift = 0,
126 .has_soc_alert = 0,
129 .reset_val = 0x5400,
130 .vcell_shift = 0,
135 .has_soc_alert = 0,
171 MAX17040_ALSC_MASK, enable ? MAX17040_ALSC_MASK : 0); in max17040_set_soc_alert()
177 0xffff : MAX17040_CFG_RCOMP_MASK; in max17040_set_rcomp()
239 if (chip->low_soc_alert <= 0 || in max17040_get_of_data()
250 chip->rcomp = rcomp_len == 2 ? rcomp[0] << 8 | rcomp[1] : in max17040_get_of_data()
251 rcomp[0] << 8; in max17040_get_of_data()
252 } else if (rcomp_len > 0) { in max17040_get_of_data()
257 return 0; in max17040_get_of_data()
355 return 0; in max17040_prop_writeable()
406 return 0; in max17040_get_property()
474 if (ret < 0) in max17040_probe()
476 dev_dbg(&chip->client->dev, "MAX17040 Fuel-Gauge Ver 0x%x\n", ret); in max17040_probe()
515 client->irq = 0; in max17040_probe()
521 return 0; in max17040_probe()
533 max17040_set_soc_alert(chip, 0); in max17040_suspend()
540 return 0; in max17040_suspend()
556 return 0; in max17040_resume()