/* Write resolution into configuration struct, but don't write it to the sensor yet.  */
static void ds18b20_set_resolution(const struct device *dev, uint8_t resolution)
/* Write resolution into configuration struct, but don't write it to the sensor yet.  */
static void ds18b20_set_resolution(const struct device *dev, uint8_t resolution)
{
	struct ds18b20_data *data = dev->data;
	data->scratchpad.config &= ~DS18B20_RESOLUTION_MASK;
	data->scratchpad.config |= DS18B20_RESOLUTION(resolution);
}