summaryrefslogtreecommitdiffstats
path: root/hw/tmp105.h
Commit message (Collapse)AuthorAgeFilesLines
* tmp105: Add temperature QOM propertyAndreas Färber2013-01-161-15/+0
| | | | | | | This obsoletes tmp105_set() and allows for better error handling. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* tmp105: QOM'ifyAndreas Färber2013-01-161-0/+27
| | | | | | | | | Introduce TYPE_ constant and cast macro. Move the state struct to the new header to allow for future embedding. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* tmp105: Split out I2C message constants from headerAndreas Färber2013-01-161-33/+1
| | | | | | | | Allows value sharing with qtest. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* tmp105: Create API for TMP105 temperature sensor.Alex Horn2012-12-231-0/+67
* Define enum for TMP105 registers * Move tmp105_set() from I2C to TMP105 header * Document units and range of temperature as preconditions Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alex Horn <alex.horn@cs.ox.ac.uk> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud