Skip to content

Commit 56e6de7

Browse files
rbudai98amiclaus
authored andcommitted
IIO: extend types
Add power as IIO channel type Signed-off-by: rbudai98 <[email protected]>
1 parent b56b6f4 commit 56e6de7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

iio/iio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ static const char * const iio_chan_type_string[] = {
112112
[IIO_DELTA_ANGL] = "deltaangl",
113113
[IIO_DELTA_VELOCITY] = "deltavelocity",
114114
[IIO_WEIGHT] = "weight",
115+
[IIO_POWER] = "power",
115116
};
116117

117118
static const char * const iio_modifier_names[] = {

iio/iio_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ enum iio_chan_type {
7070
IIO_DELTA_ANGL,
7171
IIO_DELTA_VELOCITY,
7272
IIO_WEIGHT,
73+
IIO_POWER,
7374
};
7475

7576
/**

0 commit comments

Comments
 (0)