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