Skip to content

Commit

Permalink
staging: most: usb: pass correct register table
Browse files Browse the repository at this point in the history
Inside the function store_value() the table of writable registers need to
be passed to function get_static_reg_addr() or else the correct register
address is never going to be found.

Reported-by: Alex Riesen <alexander.riesen@cetitec.com>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Christian Gromm authored and Greg Kroah-Hartman committed Apr 8, 2017
1 parent 5c13155 commit b2e8aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/most/hdm-usb/hdm_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ static ssize_t store_value(struct most_dci_obj *dci_obj,
err = drci_wr_reg(usb_dev, dci_obj->reg_addr, val);
else if (!strcmp(name, "sync_ep"))
err = start_sync_ep(usb_dev, val);
else if (!get_static_reg_addr(ro_regs, name, &reg_addr))
else if (!get_static_reg_addr(rw_regs, name, &reg_addr))
err = drci_wr_reg(usb_dev, reg_addr, val);
else
return -EFAULT;
Expand Down

0 comments on commit b2e8aa5

Please sign in to comment.