summaryrefslogtreecommitdiff
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2016-09-09 15:25:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-12 09:47:15 +0200
commit0e9b9d08319ce195e12f8cc7860949ca88c7541a (patch)
tree95d6fef9bb8d7a2835da085e826dcf68db614f56 /drivers/staging/most
parenta27cb25b64d9737df3e12f970ef9b5b638f7907f (diff)
staging: most: hdm-usb: unify variable names
This patch is needed to have the same variable name for the same quantity in the functions show_value() and store_value(). Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r--drivers/staging/most/hdm-usb/hdm_usb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/most/hdm-usb/hdm_usb.c b/drivers/staging/most/hdm-usb/hdm_usb.c
index 9c9a43835305..073a2aae4ef2 100644
--- a/drivers/staging/most/hdm-usb/hdm_usb.c
+++ b/drivers/staging/most/hdm-usb/hdm_usb.c
@@ -1073,7 +1073,7 @@ static int get_stat_reg_addr(const struct regs *regs, int size,
static ssize_t show_value(struct most_dci_obj *dci_obj,
struct most_dci_attribute *attr, char *buf)
{
- u16 tmp_val;
+ u16 val;
u16 reg_addr;
int err;
@@ -1085,11 +1085,11 @@ static ssize_t show_value(struct most_dci_obj *dci_obj,
get_static_reg_addr(rw_regs, attr->attr.name, &reg_addr))
return -EFAULT;
- err = drci_rd_reg(dci_obj->usb_device, reg_addr, &tmp_val);
+ err = drci_rd_reg(dci_obj->usb_device, reg_addr, &val);
if (err < 0)
return err;
- return snprintf(buf, PAGE_SIZE, "%04x\n", tmp_val);
+ return snprintf(buf, PAGE_SIZE, "%04x\n", val);
}
static ssize_t store_value(struct most_dci_obj *dci_obj,