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

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>

+2 -1
+2 -1
drivers/iio/dac/dpot-dac.c
··· 74 74 case IIO_VAL_INT: 75 75 /* 76 76 * Convert integer scale to fractional scale by 77 - * setting the denominator (val2) to one, and... 77 + * setting the denominator (val2) to one... 78 78 */ 79 79 *val2 = 1; 80 80 ret = IIO_VAL_FRACTIONAL; 81 + /* ...and fall through. Say it again for GCC. */ 81 82 fallthrough; 82 83 case IIO_VAL_FRACTIONAL: 83 84 *val *= regulator_get_voltage(dac->vref) / 1000;