Lines Matching refs:cap
339 const struct cap11xx_hw_model *cap; in cap11xx_i2c_probe() local
349 cap = &cap11xx_devices[id->driver_data]; in cap11xx_i2c_probe()
350 if (!cap || !cap->num_channels) { in cap11xx_i2c_probe()
357 cap->num_channels * sizeof(priv->keycodes[0]), in cap11xx_i2c_probe()
370 if (val != cap->product_id) { in cap11xx_i2c_probe()
372 val, cap->product_id); in cap11xx_i2c_probe()
409 for (i = 0; i < cap->num_channels; i++) in cap11xx_i2c_probe()
413 priv->keycodes, cap->num_channels); in cap11xx_i2c_probe()
437 for (i = 0; i < cap->num_channels; i++) in cap11xx_i2c_probe()
444 priv->idev->keycodemax = cap->num_channels; in cap11xx_i2c_probe()
447 priv->idev->id.product = cap->product_id; in cap11xx_i2c_probe()
453 error = cap11xx_init_leds(dev, priv, cap->num_leds); in cap11xx_i2c_probe()