Lines Matching full:iqs62x
12 #include <linux/mfd/iqs62x.h>
25 struct iqs62x_core *iqs62x; member
33 static int iqs624_pos_angle_en(struct iqs62x_core *iqs62x, bool angle_en) in iqs624_pos_angle_en() argument
43 if (iqs62x->dev_desc->prod_num == IQS625_PROD_NUM) in iqs624_pos_angle_en()
46 return regmap_update_bits(iqs62x->regmap, IQS624_HALL_UI, event_mask, in iqs624_pos_angle_en()
55 struct iqs62x_core *iqs62x; in iqs624_pos_notifier() local
66 iqs62x = iqs624_pos->iqs62x; in iqs624_pos_notifier()
67 if (iqs62x->dev_desc->prod_num == IQS625_PROD_NUM) in iqs624_pos_notifier()
73 ret = iqs624_pos_angle_en(iqs62x, iqs624_pos->angle_en); in iqs624_pos_notifier()
105 ret = blocking_notifier_chain_unregister(&iqs624_pos->iqs62x->nh, in iqs624_pos_notifier_unregister()
112 static int iqs624_pos_angle_get(struct iqs62x_core *iqs62x, unsigned int *val) in iqs624_pos_angle_get() argument
117 if (iqs62x->dev_desc->prod_num == IQS625_PROD_NUM) in iqs624_pos_angle_get()
118 return regmap_read(iqs62x->regmap, iqs62x->dev_desc->interval, in iqs624_pos_angle_get()
121 ret = regmap_raw_read(iqs62x->regmap, IQS624_POS_DEG_OUT, &val_buf, in iqs624_pos_angle_get()
136 struct iqs62x_core *iqs62x = iqs624_pos->iqs62x; in iqs624_pos_read_raw() local
142 ret = iqs624_pos_angle_get(iqs62x, val); in iqs624_pos_read_raw()
149 if (iqs62x->dev_desc->prod_num == IQS625_PROD_NUM) { in iqs624_pos_read_raw()
150 ret = regmap_read(iqs62x->regmap, IQS624_INTERVAL_DIV, in iqs624_pos_read_raw()
187 struct iqs62x_core *iqs62x = iqs624_pos->iqs62x; in iqs624_pos_write_event_config() local
193 ret = iqs624_pos_angle_get(iqs62x, &val); in iqs624_pos_write_event_config()
197 ret = iqs624_pos_angle_en(iqs62x, state); in iqs624_pos_write_event_config()
236 struct iqs62x_core *iqs62x = dev_get_drvdata(pdev->dev.parent); in iqs624_pos_probe() local
246 iqs624_pos->iqs62x = iqs62x; in iqs624_pos_probe()
252 indio_dev->name = iqs62x->dev_desc->dev_name; in iqs624_pos_probe()
258 ret = blocking_notifier_chain_register(&iqs624_pos->iqs62x->nh, in iqs624_pos_probe()