Searched refs:gain32 (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/input/keyboard/
H A Dcap11xx.c342 u32 gain32; cap11xx_i2c_probe() local
394 if (!of_property_read_u32(node, "microchip,sensor-gain", &gain32)) { cap11xx_i2c_probe()
395 if (is_power_of_2(gain32) && gain32 <= 8) cap11xx_i2c_probe()
396 gain = ilog2(gain32); cap11xx_i2c_probe()
398 dev_err(dev, "Invalid sensor-gain value %d\n", gain32); cap11xx_i2c_probe()

Completed in 41 milliseconds