Lines Matching refs:ctrl
36 u8 ctrl;
132 u8 ctrl = 0;
136 ctrl |= SC18IS602_MODE_CPHA;
138 ctrl |= SC18IS602_MODE_CPOL;
140 ctrl |= SC18IS602_MODE_LSB_FIRST;
144 ctrl |= SC18IS602_MODE_CLOCK_DIV_4;
147 ctrl |= SC18IS602_MODE_CLOCK_DIV_16;
150 ctrl |= SC18IS602_MODE_CLOCK_DIV_64;
153 ctrl |= SC18IS602_MODE_CLOCK_DIV_128;
159 * value of 0xff for hw->ctrl ensures that the correct mode will be set
162 if (ctrl == hw->ctrl)
165 ret = i2c_smbus_write_byte_data(hw->client, 0xf0, ctrl);
169 hw->ctrl = ctrl;
262 hw->ctrl = 0xff;