Lines Matching +full:1 +full:st

17  * LOT Low Threshold [1]       | 0x8E | events/in_angl1_thresh_rising_hysteresis
27 * [1]: The value written to the LOT low register is high value minus the
75 #define AD2S1210_SET_RES GENMASK(1, 0)
84 #define AD2S1210_FAULT_PHASE BIT(1)
118 /* Threshold voltage registers have 1 LSB == 38 mV */
175 static int ad2s1210_set_mode(struct ad2s1210_state *st, enum ad2s1210_mode mode) in ad2s1210_set_mode() argument
177 struct gpio_descs *gpios = st->mode_gpios; in ad2s1210_set_mode()
181 return mode == st->fixed_mode ? 0 : -EOPNOTSUPP; in ad2s1210_set_mode()
198 struct ad2s1210_state *st = context; in ad2s1210_regmap_reg_write() local
201 .len = 1, in ad2s1210_regmap_reg_write()
202 .rx_buf = &st->rx[0], in ad2s1210_regmap_reg_write()
203 .tx_buf = &st->tx[0], in ad2s1210_regmap_reg_write()
204 .cs_change = 1, in ad2s1210_regmap_reg_write()
206 .len = 1, in ad2s1210_regmap_reg_write()
207 .rx_buf = &st->rx[1], in ad2s1210_regmap_reg_write()
208 .tx_buf = &st->tx[1], in ad2s1210_regmap_reg_write()
217 st->tx[0] = reg; in ad2s1210_regmap_reg_write()
218 st->tx[1] = val; in ad2s1210_regmap_reg_write()
220 ret = ad2s1210_set_mode(st, MOD_CONFIG); in ad2s1210_regmap_reg_write()
224 ret = spi_sync_transfer(st->sdev, xfers, ARRAY_SIZE(xfers)); in ad2s1210_regmap_reg_write()
230 st->prev_fault_flags = 0; in ad2s1210_regmap_reg_write()
244 struct ad2s1210_state *st = context; in ad2s1210_regmap_reg_read() local
247 .len = 1, in ad2s1210_regmap_reg_read()
248 .rx_buf = &st->rx[0], in ad2s1210_regmap_reg_read()
249 .tx_buf = &st->tx[0], in ad2s1210_regmap_reg_read()
250 .cs_change = 1, in ad2s1210_regmap_reg_read()
252 .len = 1, in ad2s1210_regmap_reg_read()
253 .rx_buf = &st->rx[1], in ad2s1210_regmap_reg_read()
254 .tx_buf = &st->tx[1], in ad2s1210_regmap_reg_read()
259 ret = ad2s1210_set_mode(st, MOD_CONFIG); in ad2s1210_regmap_reg_read()
263 st->tx[0] = reg; in ad2s1210_regmap_reg_read()
269 st->tx[1] = AD2S1210_REG_CONTROL; in ad2s1210_regmap_reg_read()
271 ret = spi_sync_transfer(st->sdev, xfers, ARRAY_SIZE(xfers)); in ad2s1210_regmap_reg_read()
277 st->prev_fault_flags = 0; in ad2s1210_regmap_reg_read()
285 && st->rx[1] & AD2S1210_ADDRESS_DATA) in ad2s1210_regmap_reg_read()
288 *val = st->rx[1]; in ad2s1210_regmap_reg_read()
299 static void ad2s1210_toggle_sample_line(struct ad2s1210_state *st) in ad2s1210_toggle_sample_line() argument
307 gpiod_set_value(st->sample_gpio, 1); in ad2s1210_toggle_sample_line()
309 gpiod_set_value(st->sample_gpio, 0); in ad2s1210_toggle_sample_line()
318 static int ad2s1210_reinit_excitation_frequency(struct ad2s1210_state *st, in ad2s1210_reinit_excitation_frequency() argument
327 fcw = fexcit * (1 << 15) / st->clkin_hz; in ad2s1210_reinit_excitation_frequency()
331 ret = regmap_write(st->regmap, AD2S1210_REG_EXCIT_FREQ, fcw); in ad2s1210_reinit_excitation_frequency()
339 ret = regmap_write(st->regmap, AD2S1210_REG_SOFT_RESET, 0); in ad2s1210_reinit_excitation_frequency()
349 msleep(track_time_ms[st->resolution] * 8192000 / st->clkin_hz); in ad2s1210_reinit_excitation_frequency()
352 ret = regmap_read(st->regmap, AD2S1210_REG_FAULT, &ignored); in ad2s1210_reinit_excitation_frequency()
357 ad2s1210_toggle_sample_line(st); in ad2s1210_reinit_excitation_frequency()
365 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_push_events() local
368 if (FAULT_ONESHOT(AD2S1210_FAULT_CLIP, flags, st->prev_fault_flags)) { in ad2s1210_push_events()
374 IIO_UNMOD_EVENT_CODE(IIO_ALTVOLTAGE, 1, in ad2s1210_push_events()
386 if (FAULT_ONESHOT(AD2S1210_FAULT_LOS, flags, st->prev_fault_flags)) in ad2s1210_push_events()
394 if (FAULT_ONESHOT(AD2S1210_FAULT_DOS_OVR, flags, st->prev_fault_flags)) in ad2s1210_push_events()
402 if (FAULT_ONESHOT(AD2S1210_FAULT_DOS_MIS, flags, st->prev_fault_flags)) in ad2s1210_push_events()
410 if (FAULT_ONESHOT(AD2S1210_FAULT_LOT, flags, st->prev_fault_flags)) in ad2s1210_push_events()
412 IIO_UNMOD_EVENT_CODE(IIO_ANGL, 1, in ad2s1210_push_events()
418 if (FAULT_ONESHOT(AD2S1210_FAULT_VELOCITY, flags, st->prev_fault_flags)) in ad2s1210_push_events()
426 if (FAULT_ONESHOT(AD2S1210_FAULT_PHASE, flags, st->prev_fault_flags)) in ad2s1210_push_events()
435 st->prev_fault_flags)) in ad2s1210_push_events()
443 st->prev_fault_flags = flags; in ad2s1210_push_events()
450 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_single_conversion() local
454 guard(mutex)(&st->lock); in ad2s1210_single_conversion()
456 ad2s1210_toggle_sample_line(st); in ad2s1210_single_conversion()
459 if (st->fixed_mode == MOD_CONFIG) { in ad2s1210_single_conversion()
464 ret = regmap_bulk_read(st->regmap, in ad2s1210_single_conversion()
466 &st->sample.raw, 2); in ad2s1210_single_conversion()
472 ret = regmap_bulk_read(st->regmap, in ad2s1210_single_conversion()
474 &st->sample.raw, 2); in ad2s1210_single_conversion()
483 ret = regmap_read(st->regmap, AD2S1210_REG_FAULT, &reg_val); in ad2s1210_single_conversion()
487 st->sample.fault = reg_val; in ad2s1210_single_conversion()
491 ret = ad2s1210_set_mode(st, MOD_POS); in ad2s1210_single_conversion()
494 ret = ad2s1210_set_mode(st, MOD_VEL); in ad2s1210_single_conversion()
502 ret = spi_read(st->sdev, &st->sample, 3); in ad2s1210_single_conversion()
509 *val = be16_to_cpu(st->sample.raw); in ad2s1210_single_conversion()
513 *val = (s16)be16_to_cpu(st->sample.raw); in ad2s1210_single_conversion()
520 ad2s1210_push_events(indio_dev, st->sample.fault, timestamp); in ad2s1210_single_conversion()
525 static int ad2s1210_get_hysteresis(struct ad2s1210_state *st, int *val) in ad2s1210_get_hysteresis() argument
529 guard(mutex)(&st->lock); in ad2s1210_get_hysteresis()
530 ret = regmap_test_bits(st->regmap, AD2S1210_REG_CONTROL, in ad2s1210_get_hysteresis()
535 *val = ret << (2 * (AD2S1210_RES_16 - st->resolution)); in ad2s1210_get_hysteresis()
539 static int ad2s1210_set_hysteresis(struct ad2s1210_state *st, int val) in ad2s1210_set_hysteresis() argument
541 guard(mutex)(&st->lock); in ad2s1210_set_hysteresis()
542 return regmap_update_bits(st->regmap, AD2S1210_REG_CONTROL, in ad2s1210_set_hysteresis()
547 static int ad2s1210_get_phase_lock_range(struct ad2s1210_state *st, in ad2s1210_get_phase_lock_range() argument
552 guard(mutex)(&st->lock); in ad2s1210_get_phase_lock_range()
553 ret = regmap_test_bits(st->regmap, AD2S1210_REG_CONTROL, in ad2s1210_get_phase_lock_range()
571 static int ad2s1210_set_phase_lock_range(struct ad2s1210_state *st, in ad2s1210_set_phase_lock_range() argument
585 guard(mutex)(&st->lock); in ad2s1210_set_phase_lock_range()
586 return regmap_update_bits(st->regmap, AD2S1210_REG_CONTROL, in ad2s1210_set_phase_lock_range()
599 static int ad2s1210_get_voltage_threshold(struct ad2s1210_state *st, in ad2s1210_get_voltage_threshold() argument
605 guard(mutex)(&st->lock); in ad2s1210_get_voltage_threshold()
606 ret = regmap_read(st->regmap, reg, &reg_val); in ad2s1210_get_voltage_threshold()
614 static int ad2s1210_set_voltage_threshold(struct ad2s1210_state *st, in ad2s1210_set_voltage_threshold() argument
621 guard(mutex)(&st->lock); in ad2s1210_set_voltage_threshold()
622 return regmap_write(st->regmap, reg, reg_val); in ad2s1210_set_voltage_threshold()
625 static int ad2s1210_get_lot_high_threshold(struct ad2s1210_state *st, in ad2s1210_get_lot_high_threshold() argument
631 guard(mutex)(&st->lock); in ad2s1210_get_lot_high_threshold()
632 ret = regmap_read(st->regmap, AD2S1210_REG_LOT_HIGH_THRD, &reg_val); in ad2s1210_get_lot_high_threshold()
637 *val2 = reg_val * ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in ad2s1210_get_lot_high_threshold()
641 static int ad2s1210_set_lot_high_threshold(struct ad2s1210_state *st, in ad2s1210_set_lot_high_threshold() argument
651 guard(mutex)(&st->lock); in ad2s1210_set_lot_high_threshold()
656 ret = regmap_read(st->regmap, AD2S1210_REG_LOT_HIGH_THRD, &high_reg_val); in ad2s1210_set_lot_high_threshold()
660 ret = regmap_read(st->regmap, AD2S1210_REG_LOT_LOW_THRD, &low_reg_val); in ad2s1210_set_lot_high_threshold()
665 high_reg_val = val2 / ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in ad2s1210_set_lot_high_threshold()
668 ret = regmap_write(st->regmap, AD2S1210_REG_LOT_HIGH_THRD, high_reg_val); in ad2s1210_set_lot_high_threshold()
672 return regmap_write(st->regmap, AD2S1210_REG_LOT_LOW_THRD, low_reg_val); in ad2s1210_set_lot_high_threshold()
675 static int ad2s1210_get_lot_low_threshold(struct ad2s1210_state *st, in ad2s1210_get_lot_low_threshold() argument
681 guard(mutex)(&st->lock); in ad2s1210_get_lot_low_threshold()
683 ret = regmap_read(st->regmap, AD2S1210_REG_LOT_HIGH_THRD, &high_reg_val); in ad2s1210_get_lot_low_threshold()
687 ret = regmap_read(st->regmap, AD2S1210_REG_LOT_LOW_THRD, &low_reg_val); in ad2s1210_get_lot_low_threshold()
694 ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in ad2s1210_get_lot_low_threshold()
698 static int ad2s1210_set_lot_low_threshold(struct ad2s1210_state *st, in ad2s1210_set_lot_low_threshold() argument
708 hysteresis = val2 / ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in ad2s1210_set_lot_low_threshold()
710 guard(mutex)(&st->lock); in ad2s1210_set_lot_low_threshold()
712 ret = regmap_read(st->regmap, AD2S1210_REG_LOT_HIGH_THRD, &reg_val); in ad2s1210_set_lot_low_threshold()
716 return regmap_write(st->regmap, AD2S1210_REG_LOT_LOW_THRD, in ad2s1210_set_lot_low_threshold()
720 static int ad2s1210_get_excitation_frequency(struct ad2s1210_state *st, int *val) in ad2s1210_get_excitation_frequency() argument
725 guard(mutex)(&st->lock); in ad2s1210_get_excitation_frequency()
727 ret = regmap_read(st->regmap, AD2S1210_REG_EXCIT_FREQ, &reg_val); in ad2s1210_get_excitation_frequency()
731 *val = reg_val * st->clkin_hz / (1 << 15); in ad2s1210_get_excitation_frequency()
735 static int ad2s1210_set_excitation_frequency(struct ad2s1210_state *st, int val) in ad2s1210_set_excitation_frequency() argument
740 guard(mutex)(&st->lock); in ad2s1210_set_excitation_frequency()
741 return ad2s1210_reinit_excitation_frequency(st, val); in ad2s1210_set_excitation_frequency()
757 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_read_raw() local
770 *val = st->clkin_hz; in ad2s1210_read_raw()
771 *val2 = ad2s1210_velocity_scale[st->resolution]; in ad2s1210_read_raw()
779 return ad2s1210_get_excitation_frequency(st, val); in ad2s1210_read_raw()
786 return ad2s1210_get_hysteresis(st, val); in ad2s1210_read_raw()
806 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_read_avail() local
821 *vals = st->hysteresis_available; in ad2s1210_read_avail()
823 *length = ARRAY_SIZE(st->hysteresis_available); in ad2s1210_read_avail()
837 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_write_raw() local
843 return ad2s1210_set_excitation_frequency(st, val); in ad2s1210_write_raw()
850 return ad2s1210_set_hysteresis(st, val); in ad2s1210_write_raw()
924 .indexed = 1,
940 .indexed = 1,
942 .scan_index = 1,
958 .indexed = 1,
959 .channel = 1,
960 .scan_index = -1,
967 .indexed = 1,
969 .scan_index = -1,
975 .indexed = 1,
977 .output = 1,
978 .scan_index = -1,
984 .indexed = 1,
986 .scan_index = -1,
992 .indexed = 1,
993 .channel = 1,
994 .scan_index = -1,
1000 .indexed = 1,
1002 .scan_index = -1,
1012 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); in event_attr_voltage_reg_show() local
1017 guard(mutex)(&st->lock); in event_attr_voltage_reg_show()
1018 ret = regmap_read(st->regmap, iattr->address, &value); in event_attr_voltage_reg_show()
1029 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); in event_attr_voltage_reg_store() local
1038 guard(mutex)(&st->lock); in event_attr_voltage_reg_store()
1039 ret = regmap_write(st->regmap, iattr->address, in event_attr_voltage_reg_store()
1052 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); in in_angl1_thresh_rising_value_available_show() local
1053 int step = ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in in_angl1_thresh_rising_value_available_show()
1063 struct ad2s1210_state *st = iio_priv(dev_to_iio_dev(dev)); in in_angl1_thresh_rising_hysteresis_available_show() local
1064 int step = ad2s1210_lot_threshold_urad_per_lsb[st->resolution]; in in_angl1_thresh_rising_hysteresis_available_show()
1109 static int ad2s1210_initial(struct ad2s1210_state *st) in ad2s1210_initial() argument
1114 guard(mutex)(&st->lock); in ad2s1210_initial()
1117 data = FIELD_PREP(AD2S1210_PHASE_LOCK_RANGE_44, 1); in ad2s1210_initial()
1118 data |= FIELD_PREP(AD2S1210_ENABLE_HYSTERESIS, 1); in ad2s1210_initial()
1120 data |= FIELD_PREP(AD2S1210_SET_RES, st->resolution); in ad2s1210_initial()
1122 ret = regmap_write(st->regmap, AD2S1210_REG_CONTROL, data); in ad2s1210_initial()
1126 return ad2s1210_reinit_excitation_frequency(st, AD2S1210_DEF_EXCIT); in ad2s1210_initial()
1136 if (chan->channel == 1) in ad2s1210_read_label()
1148 if (chan->channel == 1) in ad2s1210_read_label()
1164 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_read_event_value() local
1170 return ad2s1210_get_lot_high_threshold(st, val, val2); in ad2s1210_read_event_value()
1172 return ad2s1210_get_lot_low_threshold(st, val, val2); in ad2s1210_read_event_value()
1180 return ad2s1210_get_voltage_threshold(st, in ad2s1210_read_event_value()
1183 return ad2s1210_get_voltage_threshold(st, in ad2s1210_read_event_value()
1186 return ad2s1210_get_voltage_threshold(st, in ad2s1210_read_event_value()
1190 return ad2s1210_get_phase_lock_range(st, val, val2); in ad2s1210_read_event_value()
1203 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_write_event_value() local
1209 return ad2s1210_set_lot_high_threshold(st, val, val2); in ad2s1210_write_event_value()
1211 return ad2s1210_set_lot_low_threshold(st, val, val2); in ad2s1210_write_event_value()
1219 return ad2s1210_set_voltage_threshold(st, in ad2s1210_write_event_value()
1222 return ad2s1210_set_voltage_threshold(st, in ad2s1210_write_event_value()
1225 return ad2s1210_set_voltage_threshold(st, in ad2s1210_write_event_value()
1229 return ad2s1210_set_phase_lock_range(st, val, val2); in ad2s1210_write_event_value()
1258 if (chan->channel == 1 || chan->channel == 2) in ad2s1210_read_event_label()
1269 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_debugfs_reg_access() local
1271 guard(mutex)(&st->lock); in ad2s1210_debugfs_reg_access()
1274 return regmap_read(st->regmap, reg, readval); in ad2s1210_debugfs_reg_access()
1276 return regmap_write(st->regmap, reg, writeval); in ad2s1210_debugfs_reg_access()
1283 struct ad2s1210_state *st = iio_priv(indio_dev); in ad2s1210_trigger_handler() local
1287 guard(mutex)(&st->lock); in ad2s1210_trigger_handler()
1289 memset(&st->scan, 0, sizeof(st->scan)); in ad2s1210_trigger_handler()
1290 ad2s1210_toggle_sample_line(st); in ad2s1210_trigger_handler()
1293 if (st->fixed_mode == MOD_CONFIG) { in ad2s1210_trigger_handler()
1294 ret = regmap_bulk_read(st->regmap, in ad2s1210_trigger_handler()
1296 &st->sample.raw, 2); in ad2s1210_trigger_handler()
1300 ret = ad2s1210_set_mode(st, MOD_POS); in ad2s1210_trigger_handler()
1304 ret = spi_read(st->sdev, &st->sample, 3); in ad2s1210_trigger_handler()
1309 memcpy(&st->scan.chan[chan++], &st->sample.raw, 2); in ad2s1210_trigger_handler()
1312 if (test_bit(1, indio_dev->active_scan_mask)) { in ad2s1210_trigger_handler()
1313 if (st->fixed_mode == MOD_CONFIG) { in ad2s1210_trigger_handler()
1314 ret = regmap_bulk_read(st->regmap, in ad2s1210_trigger_handler()
1316 &st->sample.raw, 2); in ad2s1210_trigger_handler()
1320 ret = ad2s1210_set_mode(st, MOD_VEL); in ad2s1210_trigger_handler()
1324 ret = spi_read(st->sdev, &st->sample, 3); in ad2s1210_trigger_handler()
1329 memcpy(&st->scan.chan[chan++], &st->sample.raw, 2); in ad2s1210_trigger_handler()
1332 if (st->fixed_mode == MOD_CONFIG) { in ad2s1210_trigger_handler()
1335 ret = regmap_read(st->regmap, AD2S1210_REG_FAULT, &reg_val); in ad2s1210_trigger_handler()
1339 st->sample.fault = reg_val; in ad2s1210_trigger_handler()
1342 ad2s1210_push_events(indio_dev, st->sample.fault, pf->timestamp); in ad2s1210_trigger_handler()
1343 iio_push_to_buffers_with_timestamp(indio_dev, &st->scan, pf->timestamp); in ad2s1210_trigger_handler()
1363 static int ad2s1210_setup_properties(struct ad2s1210_state *st) in ad2s1210_setup_properties() argument
1365 struct device *dev = &st->sdev->dev; in ad2s1210_setup_properties()
1372 st->fixed_mode = -1; in ad2s1210_setup_properties()
1381 st->fixed_mode = MOD_CONFIG; in ad2s1210_setup_properties()
1393 st->resolution = (val - 10) >> 1; in ad2s1210_setup_properties()
1396 * register. 0 = disabled, 1 = enabled. When enabled, the actual in ad2s1210_setup_properties()
1397 * hysteresis is +/- 1 LSB of the raw position value. Which bit is the in ad2s1210_setup_properties()
1400 st->hysteresis_available[0] = 0; in ad2s1210_setup_properties()
1401 st->hysteresis_available[1] = 1 << (2 * (AD2S1210_RES_16 - in ad2s1210_setup_properties()
1402 st->resolution)); in ad2s1210_setup_properties()
1407 static int ad2s1210_setup_clocks(struct ad2s1210_state *st) in ad2s1210_setup_clocks() argument
1409 struct device *dev = &st->sdev->dev; in ad2s1210_setup_clocks()
1416 st->clkin_hz = clk_get_rate(clk); in ad2s1210_setup_clocks()
1417 if (st->clkin_hz < AD2S1210_MIN_CLKIN || st->clkin_hz > AD2S1210_MAX_CLKIN) in ad2s1210_setup_clocks()
1420 st->clkin_hz); in ad2s1210_setup_clocks()
1425 static int ad2s1210_setup_gpios(struct ad2s1210_state *st) in ad2s1210_setup_gpios() argument
1427 struct device *dev = &st->sdev->dev; in ad2s1210_setup_gpios()
1434 st->sample_gpio = devm_gpiod_get(dev, "sample", GPIOD_OUT_LOW); in ad2s1210_setup_gpios()
1435 if (IS_ERR(st->sample_gpio)) in ad2s1210_setup_gpios()
1436 return dev_err_probe(dev, PTR_ERR(st->sample_gpio), in ad2s1210_setup_gpios()
1440 st->mode_gpios = devm_gpiod_get_array_optional(dev, "mode", in ad2s1210_setup_gpios()
1442 if (IS_ERR(st->mode_gpios)) in ad2s1210_setup_gpios()
1443 return dev_err_probe(dev, PTR_ERR(st->mode_gpios), in ad2s1210_setup_gpios()
1446 if (!st->mode_gpios && st->fixed_mode == -1) in ad2s1210_setup_gpios()
1450 if (st->mode_gpios && st->fixed_mode != -1) in ad2s1210_setup_gpios()
1454 if (st->mode_gpios && st->mode_gpios->ndescs != 2) in ad2s1210_setup_gpios()
1474 bitmap[0] = st->resolution; in ad2s1210_setup_gpios()
1523 static int ad2s1210_setup_regmap(struct ad2s1210_state *st) in ad2s1210_setup_regmap() argument
1525 struct device *dev = &st->sdev->dev; in ad2s1210_setup_regmap()
1537 st->regmap = devm_regmap_init(dev, NULL, st, &config); in ad2s1210_setup_regmap()
1538 if (IS_ERR(st->regmap)) in ad2s1210_setup_regmap()
1539 return dev_err_probe(dev, PTR_ERR(st->regmap), in ad2s1210_setup_regmap()
1548 struct ad2s1210_state *st; in ad2s1210_probe() local
1551 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); in ad2s1210_probe()
1554 st = iio_priv(indio_dev); in ad2s1210_probe()
1556 mutex_init(&st->lock); in ad2s1210_probe()
1557 st->sdev = spi; in ad2s1210_probe()
1559 ret = ad2s1210_setup_properties(st); in ad2s1210_probe()
1563 ret = ad2s1210_setup_clocks(st); in ad2s1210_probe()
1567 ret = ad2s1210_setup_gpios(st); in ad2s1210_probe()
1571 ret = ad2s1210_setup_regmap(st); in ad2s1210_probe()
1575 ret = ad2s1210_initial(st); in ad2s1210_probe()