diff options
-rw-r--r-- | drivers/iio/industrialio-core.c | 2 | ||||
-rw-r--r-- | include/linux/iio/iio.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index 2ec266ef41a3..47c1ffab38ad 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c | |||
@@ -729,7 +729,7 @@ static int iio_device_register_sysfs(struct iio_dev *indio_dev) | |||
729 | attrcount = attrcount_orig; | 729 | attrcount = attrcount_orig; |
730 | /* | 730 | /* |
731 | * New channel registration method - relies on the fact a group does | 731 | * New channel registration method - relies on the fact a group does |
732 | * not need to be initialized if it is name is NULL. | 732 | * not need to be initialized if its name is NULL. |
733 | */ | 733 | */ |
734 | if (indio_dev->channels) | 734 | if (indio_dev->channels) |
735 | for (i = 0; i < indio_dev->num_channels; i++) { | 735 | for (i = 0; i < indio_dev->num_channels; i++) { |
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index 2c395a898193..677e3d8105fa 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h | |||
@@ -164,7 +164,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev, | |||
164 | * IIO_ENUM() - Initialize enum extended channel attribute | 164 | * IIO_ENUM() - Initialize enum extended channel attribute |
165 | * @_name: Attribute name | 165 | * @_name: Attribute name |
166 | * @_shared: Whether the attribute is shared between all channels | 166 | * @_shared: Whether the attribute is shared between all channels |
167 | * @_e: Pointer to a iio_enum struct | 167 | * @_e: Pointer to an iio_enum struct |
168 | * | 168 | * |
169 | * This should usually be used together with IIO_ENUM_AVAILABLE() | 169 | * This should usually be used together with IIO_ENUM_AVAILABLE() |
170 | */ | 170 | */ |
@@ -180,9 +180,9 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev, | |||
180 | /** | 180 | /** |
181 | * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute | 181 | * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute |
182 | * @_name: Attribute name ("_available" will be appended to the name) | 182 | * @_name: Attribute name ("_available" will be appended to the name) |
183 | * @_e: Pointer to a iio_enum struct | 183 | * @_e: Pointer to an iio_enum struct |
184 | * | 184 | * |
185 | * Creates a read only attribute which list all the available enum items in a | 185 | * Creates a read only attribute which lists all the available enum items in a |
186 | * space separated list. This should usually be used together with IIO_ENUM() | 186 | * space separated list. This should usually be used together with IIO_ENUM() |
187 | */ | 187 | */ |
188 | #define IIO_ENUM_AVAILABLE(_name, _e) \ | 188 | #define IIO_ENUM_AVAILABLE(_name, _e) \ |