summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/device.vala2
-rw-r--r--hw/i2c-device.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/device.vala b/hw/device.vala
index adee58a..dad4439 100644
--- a/hw/device.vala
+++ b/hw/device.vala
@@ -13,5 +13,5 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-public class Device {
+public class Device : Object {
}
diff --git a/hw/i2c-device.vala b/hw/i2c-device.vala
index 21193f2..b6d285c 100644
--- a/hw/i2c-device.vala
+++ b/hw/i2c-device.vala
@@ -21,7 +21,7 @@ public errordomain I2CError {
public class I2CDevice : Device {
private int fd;
- public I2CDevice(uint8 dev, uint8 addr) throws I2CError {
+ public void setup(uint8 dev, uint8 addr) throws I2CError {
string file = "/dev/i2c-%u".printf(dev);
fd = Posix.open(file, Posix.O_RDWR);