tmp421
struct tmp421_data *tmp421 = dev_get_drvdata(dev);
ret = tmp421_update_device(tmp421);
if (!tmp421->channel[channel].enabled)
*val = temp_from_raw(tmp421->channel[channel].temp,
tmp421->config & TMP421_CONFIG_RANGE);
if (!tmp421->channel[channel].enabled)
*val = !!(tmp421->channel[channel].temp & 0x03);
*val = tmp421->channel[channel].enabled;
kind = tmp421;