Skip to content

Commit b19a8b3

Browse files
iio: dpot-dac: fix code comment in dpot_dac_read_raw()
After the replacement of the /* fall through */ comment with the fallthrough pseudo-keyword macro, the natural reading of a code comment was broken. Fix the natural reading of such a comment and make it intelligible. Reported-by: Peter Rosin <peda@axentia.se> Acked-by: Peter Rosin <peda@axentia.se> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
1 parent df561f6 commit b19a8b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/iio/dac/dpot-dac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ static int dpot_dac_read_raw(struct iio_dev *indio_dev,
7474
case IIO_VAL_INT:
7575
/*
7676
* Convert integer scale to fractional scale by
77-
* setting the denominator (val2) to one, and...
77+
* setting the denominator (val2) to one...
7878
*/
7979
*val2 = 1;
8080
ret = IIO_VAL_FRACTIONAL;
81+
/* ...and fall through. Say it again for GCC. */
8182
fallthrough;
8283
case IIO_VAL_FRACTIONAL:
8384
*val *= regulator_get_voltage(dac->vref) / 1000;

0 commit comments

Comments
 (0)