/* Read a register value. 
Registers have an address and a 16-bit value */
static int max17055_reg_read(const struct device *dev, uint8_t reg_addr, int16_t *valp)
/* Read a register value. 
Registers have an address and a 16-bit value */
static int max17055_reg_read(const struct device *dev, uint8_t reg_addr, int16_t *valp)
{
	const struct max17055_config *config = dev->config;
	uint8_t i2c_data[2];
	int rc;
	rc = i2c_burst_read_dt(&config->i2c, reg_addr, i2c_data, 2);
	if (rc < 0) {
		LOG_ERR("Unable to read register");
		return rc;
	}
	*valp = sys_get_le16(i2c_data);
	return 0;
}