Home
last modified time | relevance | path

Searched refs:ltc2309 (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/iio/adc/
H A Dltc2309.c36 struct ltc2309 { struct
102 static int ltc2309_read_raw_channel(struct ltc2309 *ltc2309, in ltc2309_read_raw_channel() argument
113 ret = i2c_smbus_write_byte(ltc2309->client, din); in ltc2309_read_raw_channel()
115 dev_err(ltc2309->dev, "i2c command failed: %pe\n", in ltc2309_read_raw_channel()
120 ret = i2c_master_recv(ltc2309->client, (char *)&buf, 2); in ltc2309_read_raw_channel()
122 dev_err(ltc2309->dev, "i2c read failed: %pe\n", ERR_PTR(ret)); in ltc2309_read_raw_channel()
135 struct ltc2309 *ltc2309 = iio_priv(indio_dev); in ltc2309_read_raw() local
140 mutex_lock(&ltc2309->lock); in ltc2309_read_raw()
141 ret = ltc2309_read_raw_channel(ltc2309, chan->address, val); in ltc2309_read_raw()
142 mutex_unlock(&ltc2309->lock); in ltc2309_read_raw()
[all …]
H A DMakefile66 obj-$(CONFIG_LTC2309) += ltc2309.o
H A DKconfig710 be called ltc2309.