summaryrefslogtreecommitdiffstats
path: root/include/aiodev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/aiodev.h')
-rw-r--r--include/aiodev.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/aiodev.h b/include/aiodev.h
index d557715671..56bd2da9f5 100644
--- a/include/aiodev.h
+++ b/include/aiodev.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
/*
* core.c - Code implementing core functionality of AIODEV susbsystem
*
@@ -21,8 +23,8 @@ struct aiochannel {
struct aiodevice {
const char *name;
int (*read)(struct aiochannel *, int *val);
- struct device_d dev;
- struct device_d *hwdev;
+ struct device dev;
+ struct device *hwdev;
struct aiochannel **channels;
int num_channels;
struct list_head list;
@@ -30,7 +32,7 @@ struct aiodevice {
int aiodevice_register(struct aiodevice *aiodev);
-struct aiochannel *aiochannel_get(struct device_d *dev, int index);
+struct aiochannel *aiochannel_get(struct device *dev, int index);
/* Find aiochannel by channel name, e.g. "aiodev0.in_value0_mV" */
struct aiochannel *aiochannel_by_name(const char *name);