Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/iio/dac/
Dti-dac082s085.c68 static int ti_dac_cmd(struct ti_dac_chip *ti_dac, u8 cmd, u16 val) in ti_dac_cmd() argument
70 u8 shift = 12 - ti_dac->resolution; in ti_dac_cmd()
72 ti_dac->buf[0] = cmd | (val >> (8 - shift)); in ti_dac_cmd()
73 ti_dac->buf[1] = (val << shift) & 0xff; in ti_dac_cmd()
74 return spi_sync(ti_dac->mesg.spi, &ti_dac->mesg); in ti_dac_cmd()
84 struct ti_dac_chip *ti_dac = iio_priv(indio_dev); in ti_dac_get_powerdown_mode() local
86 return ti_dac->powerdown_mode; in ti_dac_get_powerdown_mode()
93 struct ti_dac_chip *ti_dac = iio_priv(indio_dev); in ti_dac_set_powerdown_mode() local
96 if (ti_dac->powerdown_mode == mode) in ti_dac_set_powerdown_mode()
99 mutex_lock(&ti_dac->lock); in ti_dac_set_powerdown_mode()
[all …]