Skip to content

Commit 2853587

Browse files
YueHaibingjic23
authored andcommitted
iio:ad7797: Use correct attribute_group
It should use ad7797_attribute_group in ad7797_info, according to commit ("iio:ad7793: Add support for the ad7796 and ad7797"). Scale is fixed for the ad7796 and not programmable, hence should not have the scale_available attribute. Fixes: fd1a8b9 ("iio:ad7793: Add support for the ad7796 and ad7797") Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent e681bb2 commit 2853587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/ad7793.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static const struct iio_info ad7797_info = {
542542
.read_raw = &ad7793_read_raw,
543543
.write_raw = &ad7793_write_raw,
544544
.write_raw_get_fmt = &ad7793_write_raw_get_fmt,
545-
.attrs = &ad7793_attribute_group,
545+
.attrs = &ad7797_attribute_group,
546546
.validate_trigger = ad_sd_validate_trigger,
547547
};
548548

0 commit comments

Comments
 (0)