Message ID | 20220822175011.2886-2-ddrokosov@sberdevices.ru (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | iio: accel: add MSA311 accelerometer driver | expand |
diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.h index 4d72258d42fd..9e22cd78f3b8 100644 --- a/include/linux/string_helpers.h +++ b/include/linux/string_helpers.h @@ -126,4 +126,9 @@ static inline const char *str_enabled_disabled(bool v) return v ? "enabled" : "disabled"; } +static inline const char *str_read_write(bool v) +{ + return v ? "read" : "write"; +} + #endif