Lines Matching refs:tcan4x5x
317 struct tcan4x5x_priv *tcan4x5x = cdev->device_data; in tcan4x5x_init() local
320 tcan4x5x_check_wake(tcan4x5x); in tcan4x5x_init()
334 ret = regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG, in tcan4x5x_init()
344 struct tcan4x5x_priv *tcan4x5x = cdev->device_data; in tcan4x5x_disable_wake() local
346 return regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG, in tcan4x5x_disable_wake()
352 struct tcan4x5x_priv *tcan4x5x = cdev->device_data; in tcan4x5x_disable_state() local
354 return regmap_update_bits(tcan4x5x->regmap, TCAN4X5X_CONFIG, in tcan4x5x_disable_state()
360 struct tcan4x5x_priv *tcan4x5x = cdev->device_data; in tcan4x5x_parse_config() local
363 tcan4x5x->device_wake_gpio = devm_gpiod_get(cdev->dev, "device-wake", in tcan4x5x_parse_config()
365 if (IS_ERR(tcan4x5x->device_wake_gpio)) { in tcan4x5x_parse_config()
366 if (PTR_ERR(tcan4x5x->device_wake_gpio) == -EPROBE_DEFER) in tcan4x5x_parse_config()
372 tcan4x5x->reset_gpio = devm_gpiod_get_optional(cdev->dev, "reset", in tcan4x5x_parse_config()
374 if (IS_ERR(tcan4x5x->reset_gpio)) in tcan4x5x_parse_config()
375 tcan4x5x->reset_gpio = NULL; in tcan4x5x_parse_config()
377 ret = tcan4x5x_reset(tcan4x5x); in tcan4x5x_parse_config()
381 tcan4x5x->device_state_gpio = devm_gpiod_get_optional(cdev->dev, in tcan4x5x_parse_config()
384 if (IS_ERR(tcan4x5x->device_state_gpio)) { in tcan4x5x_parse_config()
385 tcan4x5x->device_state_gpio = NULL; in tcan4x5x_parse_config()