Lines Matching refs:err
18 int err; in as3722_gpio_configure() local
26 err = pmic_reg_write(pmic, AS3722_GPIO_CONTROL(gpio), value); in as3722_gpio_configure()
27 if (err) { in as3722_gpio_configure()
28 pr_err("failed to configure GPIO#%u: %d\n", gpio, err); in as3722_gpio_configure()
29 return err; in as3722_gpio_configure()
41 int err; in as3722_gpio_set_value() local
46 err = pmic_reg_read(pmic, AS3722_GPIO_SIGNAL_OUT); in as3722_gpio_set_value()
47 if (err < 0) { in as3722_gpio_set_value()
48 pr_err("failed to read GPIO signal out register: %d\n", err); in as3722_gpio_set_value()
49 return err; in as3722_gpio_set_value()
51 value = err; in as3722_gpio_set_value()
61 err = pmic_reg_write(pmic, AS3722_GPIO_SIGNAL_OUT, value); in as3722_gpio_set_value()
62 if (err) { in as3722_gpio_set_value()
63 pr_err("failed to set GPIO#%u %s: %d\n", gpio, l, err); in as3722_gpio_set_value()
64 return err; in as3722_gpio_set_value()
74 int err; in as3722_gpio_direction_output() local
84 err = pmic_reg_write(pmic, AS3722_GPIO_CONTROL(gpio), value); in as3722_gpio_direction_output()
85 if (err) { in as3722_gpio_direction_output()
87 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\n", gpio, err); in as3722_gpio_direction_output()
94 return err; in as3722_gpio_direction_output()