Lines Matching +full:out +full:- +full:masks
1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #include <linux/hwmon-sysfs.h>
21 * AD7314 temperature masks
28 * ADT7301 and ADT7302 temperature masks
48 ret = spi_read(chip->spi_dev, (u8 *)&chip->rx, sizeof(chip->rx)); in ad7314_spi_read()
50 dev_err(&chip->spi_dev->dev, "SPI read error\n"); in ad7314_spi_read()
54 return be16_to_cpu(chip->rx); in ad7314_spi_read()
68 switch (spi_get_device_id(chip->spi_dev)->driver_data) { in ad7314_temperature_show()
71 /* Invalid read-out, leading zero part is missing */ in ad7314_temperature_show()
72 return -EIO; in ad7314_temperature_show()
81 /* Invalid read-out, leading zero part is missing */ in ad7314_temperature_show()
82 return -EIO; in ad7314_temperature_show()
86 * with a sign bit - which is a 14 bit 2's complement in ad7314_temperature_show()
87 * register. 1lsb - 31.25 milli degrees centigrade in ad7314_temperature_show()
95 return -EINVAL; in ad7314_temperature_show()
113 chip = devm_kzalloc(&spi_dev->dev, sizeof(*chip), GFP_KERNEL); in ad7314_probe()
115 return -ENOMEM; in ad7314_probe()
117 chip->spi_dev = spi_dev; in ad7314_probe()
118 hwmon_dev = devm_hwmon_device_register_with_groups(&spi_dev->dev, in ad7314_probe()
119 spi_dev->modalias, in ad7314_probe()