Lines Matching refs:mfd_dev
31 const struct device *mfd_dev; member
61 return mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_ADC_CONFIG, data->adc_conf); in adc_ad559x_channel_setup()
115 ret = mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_SEQ_ADC, BIT(channel)); in adc_ad559x_read_channel()
120 if (mfd_ad559x_has_pointer_byte_map(config->mfd_dev)) { in adc_ad559x_read_channel()
123 ret = mfd_ad559x_write_raw(config->mfd_dev, (uint8_t *)&val, in adc_ad559x_read_channel()
130 ret = mfd_ad559x_read_raw(config->mfd_dev, (uint8_t *)&val, sizeof(val)); in adc_ad559x_read_channel()
140 (void)mfd_ad559x_read_raw(config->mfd_dev, (uint8_t *)&val, sizeof(val)); in adc_ad559x_read_channel()
142 ret = mfd_ad559x_read_raw(config->mfd_dev, (uint8_t *)&val, sizeof(val)); in adc_ad559x_read_channel()
246 if (!device_is_ready(config->mfd_dev)) { in adc_ad559x_init()
250 ret = mfd_ad559x_read_reg(config->mfd_dev, AD559X_REG_GEN_CTRL, 0, ®_val); in adc_ad559x_init()
261 ret = mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_GEN_CTRL, reg_val); in adc_ad559x_init()
266 ret = mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_PD_REF_CTRL, AD559X_EN_REF); in adc_ad559x_init()
310 .mfd_dev = DEVICE_DT_GET(DT_INST_PARENT(inst)), \