Lines Matching defs:tcan4x5x
13 #define DEVICE_NAME "tcan4x5x"
312 struct tcan4x5x_priv *tcan4x5x = cdev->device_data;
315 tcan4x5x_check_wake(tcan4x5x);
329 ret = regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG,
339 struct tcan4x5x_priv *tcan4x5x = cdev->device_data;
341 return regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG,
347 struct tcan4x5x_priv *tcan4x5x = cdev->device_data;
349 return regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG,
355 struct tcan4x5x_priv *tcan4x5x = cdev->device_data;
358 tcan4x5x->device_wake_gpio = devm_gpiod_get(cdev->dev, "device-wake",
360 if (IS_ERR(tcan4x5x->device_wake_gpio)) {
361 if (PTR_ERR(tcan4x5x->device_wake_gpio) == -EPROBE_DEFER)
367 tcan4x5x->reset_gpio = devm_gpiod_get_optional(cdev->dev, "reset",
369 if (IS_ERR(tcan4x5x->reset_gpio))
370 tcan4x5x->reset_gpio = NULL;
372 ret = tcan4x5x_reset(tcan4x5x);
376 tcan4x5x->device_state_gpio = devm_gpiod_get_optional(cdev->dev,
379 if (IS_ERR(tcan4x5x->device_state_gpio)) {
380 tcan4x5x->device_state_gpio = NULL;
512 { .compatible = "ti,tcan4x5x", },
519 .name = "tcan4x5x",