Lines Matching full:iqs62x

12 #include <linux/mfd/iqs62x.h>
38 struct iqs62x_core *iqs62x; member
55 struct iqs62x_core *iqs62x = iqs621_als->iqs62x; in iqs621_als_init() local
61 ret = regmap_write(iqs62x->regmap, IQS622_IR_THRESH_TOUCH, in iqs621_als_init()
66 ret = regmap_write(iqs62x->regmap, IQS622_IR_THRESH_PROX, in iqs621_als_init()
71 ret = regmap_write(iqs62x->regmap, IQS621_ALS_THRESH_LIGHT, in iqs621_als_init()
76 ret = regmap_write(iqs62x->regmap, IQS621_ALS_THRESH_DARK, in iqs621_als_init()
84 event_mask |= iqs62x->dev_desc->als_mask; in iqs621_als_init()
87 event_mask |= iqs62x->dev_desc->ir_mask; in iqs621_als_init()
89 return regmap_clear_bits(iqs62x->regmap, IQS620_GLBL_EVENT_MASK, in iqs621_als_init()
198 ret = blocking_notifier_chain_unregister(&iqs621_als->iqs62x->nh, in iqs621_als_notifier_unregister()
210 struct iqs62x_core *iqs62x = iqs621_als->iqs62x; in iqs621_als_read_raw() local
216 ret = regmap_read(iqs62x->regmap, chan->address, val); in iqs621_als_read_raw()
225 ret = regmap_raw_read(iqs62x->regmap, chan->address, &val_buf, in iqs621_als_read_raw()
277 struct iqs62x_core *iqs62x = iqs621_als->iqs62x; in iqs621_als_write_event_config() local
283 ret = regmap_read(iqs62x->regmap, iqs62x->dev_desc->als_flags, &val); in iqs621_als_write_event_config()
290 ret = regmap_update_bits(iqs62x->regmap, IQS620_GLBL_EVENT_MASK, in iqs621_als_write_event_config()
291 iqs62x->dev_desc->als_mask, in iqs621_als_write_event_config()
299 ret = regmap_update_bits(iqs62x->regmap, IQS620_GLBL_EVENT_MASK, in iqs621_als_write_event_config()
300 iqs62x->dev_desc->als_mask, in iqs621_als_write_event_config()
308 ret = regmap_read(iqs62x->regmap, IQS622_IR_FLAGS, &val); in iqs621_als_write_event_config()
313 ret = regmap_update_bits(iqs62x->regmap, IQS620_GLBL_EVENT_MASK, in iqs621_als_write_event_config()
314 iqs62x->dev_desc->ir_mask, in iqs621_als_write_event_config()
375 struct iqs62x_core *iqs62x = iqs621_als->iqs62x; in iqs621_als_write_event_value() local
442 ret = regmap_write(iqs62x->regmap, thresh_reg, thresh_val); in iqs621_als_write_event_value()
543 struct iqs62x_core *iqs62x = dev_get_drvdata(pdev->dev.parent); in iqs621_als_probe() local
554 iqs621_als->iqs62x = iqs62x; in iqs621_als_probe()
557 if (iqs62x->dev_desc->prod_num == IQS622_PROD_NUM) { in iqs621_als_probe()
558 ret = regmap_read(iqs62x->regmap, IQS622_IR_THRESH_TOUCH, in iqs621_als_probe()
568 ret = regmap_read(iqs62x->regmap, IQS621_ALS_THRESH_LIGHT, in iqs621_als_probe()
574 ret = regmap_read(iqs62x->regmap, IQS621_ALS_THRESH_DARK, in iqs621_als_probe()
585 indio_dev->name = iqs62x->dev_desc->dev_name; in iqs621_als_probe()
591 ret = blocking_notifier_chain_register(&iqs621_als->iqs62x->nh, in iqs621_als_probe()