mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
iio: add IIO_FREQUENCY channel type
Add IIO_FREQUENCY channel type to support Direct Digital Synthesizer (DDS) devices that handles frequency values written directly to its buffered interface. Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
This commit is contained in:
parent
1171811e2a
commit
b2b19f8b08
|
|
@ -100,6 +100,7 @@ static const char * const iio_chan_type_name_spec[] = {
|
|||
[IIO_ALTCURRENT] = "altcurrent",
|
||||
[IIO_COVERAGE] = "coverage",
|
||||
[IIO_VOLUMEFLOW] = "volumeflow",
|
||||
[IIO_FREQUENCY] = "frequency",
|
||||
};
|
||||
|
||||
static const char * const iio_modifier_names[] = {
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ enum iio_chan_type {
|
|||
IIO_ALTCURRENT,
|
||||
IIO_COVERAGE,
|
||||
IIO_VOLUMEFLOW,
|
||||
IIO_FREQUENCY,
|
||||
};
|
||||
|
||||
enum iio_modifier {
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ static const char * const iio_chan_type_name_spec[] = {
|
|||
[IIO_ALTCURRENT] = "altcurrent",
|
||||
[IIO_COVERAGE] = "coverage",
|
||||
[IIO_VOLUMEFLOW] = "volumeflow",
|
||||
[IIO_FREQUENCY] = "frequency",
|
||||
};
|
||||
|
||||
static const char * const iio_ev_type_text[] = {
|
||||
|
|
@ -198,6 +199,7 @@ static bool event_is_known(struct iio_event_data *event)
|
|||
case IIO_ALTCURRENT:
|
||||
case IIO_COVERAGE:
|
||||
case IIO_VOLUMEFLOW:
|
||||
case IIO_FREQUENCY:
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user