This patch is needed to return the same error codes for the same error
cases in the functions show_value() and store_value().
Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
reg_addr = dci_obj->reg_addr;
else if (get_static_reg_addr(ro_regs, attr->attr.name, ®_addr) &&
get_static_reg_addr(rw_regs, attr->attr.name, ®_addr))
- return -EIO;
+ return -EFAULT;
err = drci_rd_reg(dci_obj->usb_device, reg_addr, &tmp_val);
if (err < 0)