Lines Matching full:ec
3 * Driver for cros-ec proximity sensor exposed through MKBP switch
27 struct cros_ec_device *ec; member
103 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_push_event() local
108 timestamp = ktime_to_ns(ec->last_event_time); in cros_ec_mkbp_proximity_push_event()
127 struct cros_ec_device *ec = _ec; in cros_ec_mkbp_proximity_notify() local
128 u8 event_type = ec->event_data.event_type & EC_MKBP_EVENT_TYPE_MASK; in cros_ec_mkbp_proximity_notify()
136 switches = &ec->event_data.data.switches; in cros_ec_mkbp_proximity_notify()
149 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_read_raw() local
152 return cros_ec_mkbp_proximity_query(ec, val); in cros_ec_mkbp_proximity_read_raw()
190 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_resume() local
193 ret = cros_ec_mkbp_proximity_query(ec, &state); in cros_ec_mkbp_proximity_resume()
210 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cros_ec_mkbp_proximity_probe() local
220 data->ec = ec; in cros_ec_mkbp_proximity_probe()
237 blocking_notifier_chain_register(&ec->event_notifier, &data->notifier); in cros_ec_mkbp_proximity_probe()
245 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_remove() local
247 blocking_notifier_chain_unregister(&ec->event_notifier, in cros_ec_mkbp_proximity_remove()
254 { .compatible = "google,cros-ec-mkbp-proximity" },
261 .name = "cros-ec-mkbp-proximity",
271 MODULE_DESCRIPTION("ChromeOS EC MKBP proximity sensor driver");