diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-03-26 06:14:45 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-03 09:08:26 +0200 |
commit | d4d6813b979df98ca9b321c45449a497d0ee7177 (patch) | |
tree | 32732c2adef63ee3195af04cf4fd28c3705b690f /include/aiodev.h | |
parent | 37ebcf9984b0f6fe6282a433f8640894c3b9cdda (diff) | |
download | barebox-d4d6813b979df98ca9b321c45449a497d0ee7177.tar.gz barebox-d4d6813b979df98ca9b321c45449a497d0ee7177.tar.xz |
aiodev: Constify 'unit' in 'struct aiodev'
The way it is currently used, there's no reason for 'uint' field to be
mutable, so constify it in order to allow 'aiodev' drivers to pass
sting literals in that field.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/aiodev.h')
-rw-r--r-- | include/aiodev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/aiodev.h b/include/aiodev.h index 0d4f7a2940..5e38b4fab5 100644 --- a/include/aiodev.h +++ b/include/aiodev.h @@ -23,7 +23,7 @@ struct aiodevice; struct aiochannel { int index; - char *unit; + const char *unit; struct aiodevice *aiodev; int value; |