tmp103.c (233adcefee012ae9b3f3e7d16017bce9072fe62d) tmp103.c (034b44b4a22371c5bcbfb602a5420f3b75939dd8)
1/*
2 * Texas Instruments TMP103 SMBus temperature sensor driver
3 * Copyright (C) 2014 Heiko Schocher <hs@denx.de>
4 *
5 * Based on:
6 * Texas Instruments TMP102 SMBus temperature sensor driver
7 *
8 * Copyright (C) 2010 Steven King <sfking@fdwdc.com>

--- 102 unchanged lines hidden (view full) ---

111};
112ATTRIBUTE_GROUPS(tmp103);
113
114static bool tmp103_regmap_is_volatile(struct device *dev, unsigned int reg)
115{
116 return reg == TMP103_TEMP_REG;
117}
118
1/*
2 * Texas Instruments TMP103 SMBus temperature sensor driver
3 * Copyright (C) 2014 Heiko Schocher <hs@denx.de>
4 *
5 * Based on:
6 * Texas Instruments TMP102 SMBus temperature sensor driver
7 *
8 * Copyright (C) 2010 Steven King <sfking@fdwdc.com>

--- 102 unchanged lines hidden (view full) ---

111};
112ATTRIBUTE_GROUPS(tmp103);
113
114static bool tmp103_regmap_is_volatile(struct device *dev, unsigned int reg)
115{
116 return reg == TMP103_TEMP_REG;
117}
118
119static struct regmap_config tmp103_regmap_config = {
119static const struct regmap_config tmp103_regmap_config = {
120 .reg_bits = 8,
121 .val_bits = 8,
122 .max_register = TMP103_THIGH_REG,
123 .volatile_reg = tmp103_regmap_is_volatile,
124};
125
126static int tmp103_probe(struct i2c_client *client,
127 const struct i2c_device_id *id)

--- 79 unchanged lines hidden ---
120 .reg_bits = 8,
121 .val_bits = 8,
122 .max_register = TMP103_THIGH_REG,
123 .volatile_reg = tmp103_regmap_is_volatile,
124};
125
126static int tmp103_probe(struct i2c_client *client,
127 const struct i2c_device_id *id)

--- 79 unchanged lines hidden ---