mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 10:49:28 +00:00
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>
This commit is contained in:
parent
df561f6688
commit
b19a8b3d36
1 changed files with 2 additions and 1 deletions
|
@ -74,10 +74,11 @@ static int dpot_dac_read_raw(struct iio_dev *indio_dev,
|
||||||
case IIO_VAL_INT:
|
case IIO_VAL_INT:
|
||||||
/*
|
/*
|
||||||
* Convert integer scale to fractional scale by
|
* Convert integer scale to fractional scale by
|
||||||
* setting the denominator (val2) to one, and...
|
* setting the denominator (val2) to one...
|
||||||
*/
|
*/
|
||||||
*val2 = 1;
|
*val2 = 1;
|
||||||
ret = IIO_VAL_FRACTIONAL;
|
ret = IIO_VAL_FRACTIONAL;
|
||||||
|
/* ...and fall through. Say it again for GCC. */
|
||||||
fallthrough;
|
fallthrough;
|
||||||
case IIO_VAL_FRACTIONAL:
|
case IIO_VAL_FRACTIONAL:
|
||||||
*val *= regulator_get_voltage(dac->vref) / 1000;
|
*val *= regulator_get_voltage(dac->vref) / 1000;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue