Lines Matching refs:tcan4x5x

5 #include "tcan4x5x.h"
248 struct tcan4x5x_priv *tcan4x5x = cdev_to_priv(cdev);
251 tcan4x5x_check_wake(tcan4x5x);
267 ret = regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG,
272 if (tcan4x5x->nwkrq_voltage_vio) {
273 ret = regmap_set_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG,
284 struct tcan4x5x_priv *tcan4x5x = cdev_to_priv(cdev);
286 return regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG,
292 struct tcan4x5x_priv *tcan4x5x = cdev_to_priv(cdev);
294 return regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG,
300 struct tcan4x5x_priv *tcan4x5x = cdev_to_priv(cdev);
302 return regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG,
340 struct tcan4x5x_priv *tcan4x5x = cdev_to_priv(cdev);
342 tcan4x5x->nwkrq_voltage_vio =
348 struct tcan4x5x_priv *tcan4x5x = cdev_to_priv(cdev);
351 tcan4x5x->device_wake_gpio = devm_gpiod_get_optional(cdev->dev,
354 if (IS_ERR(tcan4x5x->device_wake_gpio)) {
355 if (PTR_ERR(tcan4x5x->device_wake_gpio) == -EPROBE_DEFER)
358 tcan4x5x->device_wake_gpio = NULL;
361 tcan4x5x->reset_gpio = devm_gpiod_get_optional(cdev->dev, "reset",
363 if (IS_ERR(tcan4x5x->reset_gpio))
364 tcan4x5x->reset_gpio = NULL;
366 ret = tcan4x5x_reset(tcan4x5x);
370 tcan4x5x->device_state_gpio = devm_gpiod_get_optional(cdev->dev,
373 if (IS_ERR(tcan4x5x->device_state_gpio))
374 tcan4x5x->device_state_gpio = NULL;
382 struct tcan4x5x_priv *tcan4x5x = cdev_to_priv(cdev);
385 if (version_info->has_wake_pin && !tcan4x5x->device_wake_gpio) {
391 if (version_info->has_state_pin && !tcan4x5x->device_state_gpio) {
576 .compatible = "ti,tcan4x5x",
585 .name = "tcan4x5x",