projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8e2d48
)
iio: adc: ad7173: Fix ! vs ~ typo in ad7173_sel_clk()
author
Dan Carpenter
<dan.carpenter@linaro.org>
Thu, 4 Apr 2024 07:31:32 +0000
(10:31 +0300)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Sat, 6 Apr 2024 15:43:47 +0000
(16:43 +0100)
This was obviously supposed to be a bitwise negate instead of logical.
Fixes: 76a1e6a42802 ("iio: adc: ad7173: add AD7173 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link:
https://lore.kernel.org/r/5401c681-c4aa-4fab-8c8c-8f0a379e2687@moroto.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7173.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/ad7173.c
b/drivers/iio/adc/ad7173.c
index f6d29abe1d049e4e81996313f71f15213812d412..a7826bba0852afc2fa560fa7029922259f1bf8a3 100644
(file)
--- a/
drivers/iio/adc/ad7173.c
+++ b/
drivers/iio/adc/ad7173.c
@@
-835,7
+835,7
@@
static unsigned long ad7173_sel_clk(struct ad7173_state *st,
{
int ret;
- st->adc_mode &=
!
AD7173_ADC_MODE_CLOCKSEL_MASK;
+ st->adc_mode &=
~
AD7173_ADC_MODE_CLOCKSEL_MASK;
st->adc_mode |= FIELD_PREP(AD7173_ADC_MODE_CLOCKSEL_MASK, clk_sel);
ret = ad_sd_write_reg(&st->sd, AD7173_REG_ADC_MODE, 0x2, st->adc_mode);