Lines Matching refs:new_config
339 static int mmc56x3_chip_configure(const struct device *dev, struct mmc56x3_config *new_config) in mmc56x3_chip_configure() argument
346 if (new_config->magn_odr != config->magn_odr) { in mmc56x3_chip_configure()
347 ret = mmc56x3_chip_set_continuous_mode(dev, new_config->magn_odr); in mmc56x3_chip_configure()
350 if ((new_config->bw0 != config->bw0) || (new_config->bw1 != config->bw1)) { in mmc56x3_chip_configure()
351 ret = mmc56x3_chip_set_decimation_filter(dev, new_config->bw0, new_config->bw1); in mmc56x3_chip_configure()
354 if (new_config->auto_sr != config->auto_sr) { in mmc56x3_chip_configure()
364 struct mmc56x3_config new_config = {}; in mmc56x3_attr_set() local
375 new_config.magn_odr = val->val1; in mmc56x3_attr_set()
378 new_config.bw0 = val->val1 ? true : false; in mmc56x3_attr_set()
381 new_config.bw1 = val->val1 ? true : false; in mmc56x3_attr_set()
384 new_config.auto_sr = val->val1 ? true : false; in mmc56x3_attr_set()
400 return mmc56x3_chip_configure(dev, &new_config); in mmc56x3_attr_set()