Lines Matching refs:ctrl
35 u8 ctrl;
131 u8 ctrl = 0;
135 ctrl |= SC18IS602_MODE_CPHA;
137 ctrl |= SC18IS602_MODE_CPOL;
139 ctrl |= SC18IS602_MODE_LSB_FIRST;
143 ctrl |= SC18IS602_MODE_CLOCK_DIV_4;
146 ctrl |= SC18IS602_MODE_CLOCK_DIV_16;
149 ctrl |= SC18IS602_MODE_CLOCK_DIV_64;
152 ctrl |= SC18IS602_MODE_CLOCK_DIV_128;
158 * value of 0xff for hw->ctrl ensures that the correct mode will be set
161 if (ctrl == hw->ctrl)
164 ret = i2c_smbus_write_byte_data(hw->client, 0xf0, ctrl);
168 hw->ctrl = ctrl;
266 hw->ctrl = 0xff;