/* Does an input register write and a channel update. */
int32_t ad5770r_pmdz_set_chan(struct ad5770r_pmdz_dev *dev, uint8_t *arg)
/* Does an input register write and a channel update. */
int32_t ad5770r_pmdz_set_chan(struct ad5770r_pmdz_dev *dev, uint8_t *arg)
{
	int32_t ret;
	ret = ad5770r_pmdz_set_in_reg(dev, arg);
	if(ret != SUCCESS)
		return ret;
	return ad5770r_pmdz_update_out(dev, NULL);
}