/* Note that the clock adjustment in ppb must be entered (which is the negative value of the deviation).  */
static int rx8025_get_clock_adjust(struct device *dev, int *adj)
/* Note that the clock adjustment in ppb must be entered (which is the negative value of the deviation).  */
static int rx8025_get_clock_adjust(struct device *dev, int *adj)
{
	struct i2c_client *client = to_i2c_client(dev);
	u8 digoff;
	int err;
	err = rx8025_read_reg(client, RX8025_REG_DIGOFF, &digoff);
	if (err)
		return err;
	*adj = digoff >= 64 ? digoff - 128 : digoff;
	if (*adj > 0)
		(*adj)--;
	*adj *= -RX8025_ADJ_RESOLUTION;
	return 0;
}