diff options
author | Hugo Camboulive <hugo.camboulive@gmail.com> | 2015-10-04 18:30:45 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-10-11 11:21:22 +0200 |
commit | 18a16b5e26c74dda2881c8f2977d702fd0e13fda (patch) | |
tree | b38c109e89efb161f5700c6c70c9c4a813d2e1c6 /drivers | |
parent | Add ms8607 meas-spec driver support (diff) | |
download | linux-18a16b5e26c74dda2881c8f2977d702fd0e13fda.tar.xz linux-18a16b5e26c74dda2881c8f2977d702fd0e13fda.zip |
staging: iio: adc: fix comment block coding style issue
This patch to ad7746.c makes the comment blocks end with a */
on a separate line, and start with a /* on an empty line.
Signed-off-by: Hugo Camboulive <hugo.camboulive@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/cdc/ad7746.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index ca7d33f3b629..c7fa2a6ac878 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/staging/iio/cdc/ad7746.c @@ -528,10 +528,11 @@ static int ad7746_write_raw(struct iio_dev *indio_dev, goto out; } - /* CAPDAC Scale = 21pF_typ / 127 + /* + * CAPDAC Scale = 21pF_typ / 127 * CIN Scale = 8.192pF / 2^24 * Offset Scale = CAPDAC Scale / CIN Scale = 338646 - * */ + */ val /= 338646; @@ -600,7 +601,8 @@ static int ad7746_read_raw(struct iio_dev *indio_dev, switch (chan->type) { case IIO_TEMP: - /* temperature in milli degrees Celsius + /* + * temperature in milli degrees Celsius * T = ((*val / 2048) - 4096) * 1000 */ *val = (*val * 125) / 256; |