mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
iio: add IIO_ALTCURRENT channel type
Add support for IIO_ALTCURRENT channel type to distinguish AC current measurements from DC current measurements. This follows the same pattern as IIO_VOLTAGE and IIO_ALTVOLTAGE. Reviewed-by: David Lechner <dlechner@baylibre.com> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
abe629ebda
commit
f15bc37d8c
@@ -97,6 +97,7 @@ static const char * const iio_chan_type_name_spec[] = {
|
|||||||
[IIO_COLORTEMP] = "colortemp",
|
[IIO_COLORTEMP] = "colortemp",
|
||||||
[IIO_CHROMATICITY] = "chromaticity",
|
[IIO_CHROMATICITY] = "chromaticity",
|
||||||
[IIO_ATTENTION] = "attention",
|
[IIO_ATTENTION] = "attention",
|
||||||
|
[IIO_ALTCURRENT] = "altcurrent",
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char * const iio_modifier_names[] = {
|
static const char * const iio_modifier_names[] = {
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ enum iio_chan_type {
|
|||||||
IIO_COLORTEMP,
|
IIO_COLORTEMP,
|
||||||
IIO_CHROMATICITY,
|
IIO_CHROMATICITY,
|
||||||
IIO_ATTENTION,
|
IIO_ATTENTION,
|
||||||
|
IIO_ALTCURRENT,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum iio_modifier {
|
enum iio_modifier {
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ static const char * const iio_chan_type_name_spec[] = {
|
|||||||
[IIO_COLORTEMP] = "colortemp",
|
[IIO_COLORTEMP] = "colortemp",
|
||||||
[IIO_CHROMATICITY] = "chromaticity",
|
[IIO_CHROMATICITY] = "chromaticity",
|
||||||
[IIO_ATTENTION] = "attention",
|
[IIO_ATTENTION] = "attention",
|
||||||
|
[IIO_ALTCURRENT] = "altcurrent",
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char * const iio_ev_type_text[] = {
|
static const char * const iio_ev_type_text[] = {
|
||||||
@@ -187,6 +188,7 @@ static bool event_is_known(struct iio_event_data *event)
|
|||||||
case IIO_COLORTEMP:
|
case IIO_COLORTEMP:
|
||||||
case IIO_CHROMATICITY:
|
case IIO_CHROMATICITY:
|
||||||
case IIO_ATTENTION:
|
case IIO_ATTENTION:
|
||||||
|
case IIO_ALTCURRENT:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user