Home
last modified time | relevance | path

Searched refs:w1_dev (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/base/regmap/
Dregmap-w1.c190 static const struct regmap_bus *regmap_get_w1_bus(struct device *w1_dev, in regmap_get_w1_bus() argument
205 struct regmap *__regmap_init_w1(struct device *w1_dev, in __regmap_init_w1() argument
211 const struct regmap_bus *bus = regmap_get_w1_bus(w1_dev, config); in __regmap_init_w1()
216 return __regmap_init(w1_dev, bus, w1_dev, config, in __regmap_init_w1()
221 struct regmap *__devm_regmap_init_w1(struct device *w1_dev, in __devm_regmap_init_w1() argument
227 const struct regmap_bus *bus = regmap_get_w1_bus(w1_dev, config); in __devm_regmap_init_w1()
232 return __devm_regmap_init(w1_dev, bus, w1_dev, config, in __devm_regmap_init_w1()
/linux-6.1.9/drivers/power/supply/
Dmax1721x_battery.c62 struct device *w1_dev; member
333 info->w1_dev = &sl->dev; in devm_w1_max1721x_add_device()
357 info->regmap = devm_regmap_init_w1(info->w1_dev, in devm_w1_max1721x_add_device()
362 dev_err(info->w1_dev, "Failed to allocate register map: %d\n", in devm_w1_max1721x_add_device()
370 dev_err(info->w1_dev, "Can't read RSense. Hardware error.\n"); in devm_w1_max1721x_add_device()
375 dev_warn(info->w1_dev, "RSense not calibrated, set 10 mOhms!\n"); in devm_w1_max1721x_add_device()
378 dev_info(info->w1_dev, "RSense: %d mOhms.\n", info->rsense / 100); in devm_w1_max1721x_add_device()
382 dev_err(info->w1_dev, "Can't read manufacturer. Hardware error.\n"); in devm_w1_max1721x_add_device()
392 dev_err(info->w1_dev, "Can't read device. Hardware error.\n"); in devm_w1_max1721x_add_device()
400 dev_err(info->w1_dev, "Can't read device name reg.\n"); in devm_w1_max1721x_add_device()
[all …]
Dds2780_battery.c38 struct device *w1_dev; member
58 return w1_ds2780_io(dev_info->w1_dev, buf, addr, count, io); in ds2780_battery_io()
108 ret = ds2780_store_eeprom(dev_info->w1_dev, reg); in ds2780_save_eeprom()
112 ret = ds2780_recall_eeprom(dev_info->w1_dev, reg); in ds2780_save_eeprom()
757 dev_info->w1_dev = pdev->dev.parent; in ds2780_battery_probe()
Dds2781_battery.c36 struct device *w1_dev; member
56 return w1_ds2781_io(dev_info->w1_dev, buf, addr, count, io); in ds2781_battery_io()
112 ret = ds2781_store_eeprom(dev_info->w1_dev, reg); in ds2781_save_eeprom()
116 ret = ds2781_recall_eeprom(dev_info->w1_dev, reg); in ds2781_save_eeprom()
761 dev_info->w1_dev = pdev->dev.parent; in ds2781_battery_probe()
/linux-6.1.9/include/linux/
Dregmap.h606 struct regmap *__regmap_init_w1(struct device *w1_dev,
662 struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
836 #define regmap_init_w1(w1_dev, config) \ argument
838 w1_dev, config)
1033 #define devm_regmap_init_w1(w1_dev, config) \ argument
1035 w1_dev, config)