From 37be0abf391f4df8155ca08442964e48a4574ea1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Jan 2022 18:16:36 +0100 Subject: device_types: Add more const_ types --- include/device/device_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/device/device_types.h b/include/device/device_types.h index 63ec26bd..f13122f0 100644 --- a/include/device/device_types.h +++ b/include/device/device_types.h @@ -69,12 +69,14 @@ typedef unsigned int dev_mode_t; * IO buffer - out-of-line array of characters. */ typedef char * io_buf_ptr_t; +typedef const char * const_io_buf_ptr_t; /* * IO buffer - in-line array of characters. */ #define IO_INBAND_MAX (128) /* must match device_types.defs */ typedef char io_buf_ptr_inband_t[IO_INBAND_MAX]; +typedef const char *const_io_buf_ptr_inband_t; /* * IO buffer vector - for scatter/gather IO. -- cgit v1.2.3