Lines Matching refs:err

19 	int err;  in as3722_gpio_configure()  local
27 err = pmic_reg_write(pmic, AS3722_GPIO_CONTROL(gpio), value); in as3722_gpio_configure()
28 if (err) { in as3722_gpio_configure()
29 pr_err("failed to configure GPIO#%u: %d", gpio, err); in as3722_gpio_configure()
30 return err; in as3722_gpio_configure()
42 int err; in as3722_gpio_set_value() local
47 err = pmic_reg_read(pmic, AS3722_GPIO_SIGNAL_OUT); in as3722_gpio_set_value()
48 if (err < 0) { in as3722_gpio_set_value()
49 pr_err("failed to read GPIO signal out register: %d", err); in as3722_gpio_set_value()
50 return err; in as3722_gpio_set_value()
52 value = err; in as3722_gpio_set_value()
62 err = pmic_reg_write(pmic, AS3722_GPIO_SIGNAL_OUT, value); in as3722_gpio_set_value()
63 if (err) { in as3722_gpio_set_value()
64 pr_err("failed to set GPIO#%u %s: %d", gpio, l, err); in as3722_gpio_set_value()
65 return err; in as3722_gpio_set_value()
75 int err; in as3722_gpio_direction_output() local
85 err = pmic_reg_write(pmic, AS3722_GPIO_CONTROL(gpio), value); in as3722_gpio_direction_output()
86 if (err) { in as3722_gpio_direction_output()
87 pr_err("failed to configure GPIO#%u as output: %d", gpio, err); in as3722_gpio_direction_output()
88 return err; in as3722_gpio_direction_output()
91 err = as3722_gpio_set_value(pmic, gpio, value); in as3722_gpio_direction_output()
92 if (err < 0) { in as3722_gpio_direction_output()
93 pr_err("failed to set GPIO#%u high: %d", gpio, err); in as3722_gpio_direction_output()
94 return err; in as3722_gpio_direction_output()