diff options
Diffstat (limited to 'common/serdev.c')
-rw-r--r-- | common/serdev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/serdev.c b/common/serdev.c index 4bf11b1618..5399a20627 100644 --- a/common/serdev.c +++ b/common/serdev.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only #include <common.h> #include <serdev.h> @@ -131,7 +132,7 @@ static int serdev_device_reader_receive_buf(struct serdev_device *serdev, const unsigned char *buf, size_t size) { - struct device_d *dev = serdev->dev; + struct device *dev = serdev->dev; struct serdev_device_reader *r = dev->priv; const size_t room = min(r->capacity - r->len, size); @@ -185,7 +186,7 @@ int serdev_device_reader_open(struct serdev_device *serdev, size_t capacity) int serdev_device_read(struct serdev_device *serdev, unsigned char *buf, size_t count, unsigned long timeout) { - struct device_d *dev = serdev->dev; + struct device *dev = serdev->dev; struct serdev_device_reader *r = dev->priv; int ret; |