summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorNicolas Schodet2019-11-15 23:52:13 +0100
committerNicolas Schodet2019-11-15 23:52:13 +0100
commit7ce1b8358a8c41d2f00e93cfd614dd445c2d1a5c (patch)
tree85b1f7b760f2ecd4e5a04d040a1edef15702976a /device.c
parentde86953c464ef457bfd9fefb38f6492035c34698 (diff)
New image API
This allows to remove conversion responsibility from devices so that image treatments can be made on raw data. Now clients must unref images when they are not used, the driver can check this.
Diffstat (limited to 'device.c')
-rw-r--r--device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.c b/device.c
index 549cce8..cfc8783 100644
--- a/device.c
+++ b/device.c
@@ -104,7 +104,7 @@ device_start(struct device *device)
device->start(device);
}
-const struct device_image *
+struct image *
device_read(struct device *device)
{
return device->read(device);