Lines Matching full:powerdown
44 * @powerdown: whether the chip is powered down
55 bool powerdown; member
64 #define POWERDOWN(mode) (0x30 | ((mode) + 1) << 6) macro
98 if (ti_dac->powerdown) { in ti_dac_set_powerdown_mode()
99 ret = ti_dac_cmd(ti_dac, POWERDOWN(mode), 0); in ti_dac_set_powerdown_mode()
124 return sysfs_emit(buf, "%d\n", ti_dac->powerdown); in ti_dac_read_powerdown()
133 bool powerdown; in ti_dac_write_powerdown() local
136 ret = kstrtobool(buf, &powerdown); in ti_dac_write_powerdown()
140 if (ti_dac->powerdown == powerdown) in ti_dac_write_powerdown()
144 if (powerdown) in ti_dac_write_powerdown()
145 ret = ti_dac_cmd(ti_dac, POWERDOWN(ti_dac->powerdown_mode), 0); in ti_dac_write_powerdown()
149 ti_dac->powerdown = powerdown; in ti_dac_write_powerdown()
157 .name = "powerdown",
231 if (ti_dac->powerdown) in ti_dac_write_raw()