/* Set the Reference Divider value of a specific channel.  */
static int fdc2x1x_set_fref_divider(const struct device *dev, uint8_t chx, uint16_t fref_div)
/* Set the Reference Divider value of a specific channel.  */
static int fdc2x1x_set_fref_divider(const struct device *dev, uint8_t chx, uint16_t fref_div)
{
	return fdc2x1x_reg_write_mask(dev,
				      FDC2X1X_CLOCK_DIVIDERS_CH0 + chx,
				      FDC2X1X_CLK_DIV_CHX_FREF_DIV_MSK,
				      FDC2X1X_CLK_DIV_CHX_FREF_DIV_SET(fref_div));
}