We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d90feaf commit ab10bf1Copy full SHA for ab10bf1
drivers/iio/adc/ltc2387.c
@@ -222,10 +222,13 @@ static int ltc2387_setup(struct iio_dev *indio_dev)
222
struct ltc2387_dev *ltc = iio_priv(indio_dev);
223
struct device *dev = indio_dev->dev.parent;
224
225
- if (device_property_present(dev, "adi,use-two-lanes"))
+ if (device_property_present(dev, "adi,use-one-lane")) {
226
+ ltc->lane_mode = ONE_LANE;
227
+ return ltc2387_set_sampling_freq(ltc, 7.5 * MHz);
228
+ } else {
229
ltc->lane_mode = TWO_LANES;
-
- return ltc2387_set_sampling_freq(ltc, 15 * MHz);
230
+ return ltc2387_set_sampling_freq(ltc, 15 * MHz);
231
+ }
232
}
233
234
static int ltc2387_read_raw(struct iio_dev *indio_dev,
0 commit comments