Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Antoniu Miclaus and committed by
Jonathan Cameron
f15bc37d abe629eb

+4
+1
drivers/iio/industrialio-core.c
··· 97 97 [IIO_COLORTEMP] = "colortemp", 98 98 [IIO_CHROMATICITY] = "chromaticity", 99 99 [IIO_ATTENTION] = "attention", 100 + [IIO_ALTCURRENT] = "altcurrent", 100 101 }; 101 102 102 103 static const char * const iio_modifier_names[] = {
+1
include/uapi/linux/iio/types.h
··· 52 52 IIO_COLORTEMP, 53 53 IIO_CHROMATICITY, 54 54 IIO_ATTENTION, 55 + IIO_ALTCURRENT, 55 56 }; 56 57 57 58 enum iio_modifier {
+2
tools/iio/iio_event_monitor.c
··· 64 64 [IIO_COLORTEMP] = "colortemp", 65 65 [IIO_CHROMATICITY] = "chromaticity", 66 66 [IIO_ATTENTION] = "attention", 67 + [IIO_ALTCURRENT] = "altcurrent", 67 68 }; 68 69 69 70 static const char * const iio_ev_type_text[] = { ··· 188 187 case IIO_COLORTEMP: 189 188 case IIO_CHROMATICITY: 190 189 case IIO_ATTENTION: 190 + case IIO_ALTCURRENT: 191 191 break; 192 192 default: 193 193 return false;