mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
staging: most: remove macro cpu_to_le16
This patch removes the wrongly used macros cpu_to_le16 Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d747e8ec1c
commit
f1b9a84382
1 changed files with 4 additions and 4 deletions
|
@ -1077,7 +1077,7 @@ static ssize_t store_value(struct most_dci_obj *dci_obj,
|
|||
struct most_dci_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
{
|
||||
u16 v16;
|
||||
u16 val;
|
||||
u16 reg_addr;
|
||||
int err;
|
||||
|
||||
|
@ -1100,11 +1100,11 @@ static ssize_t store_value(struct most_dci_obj *dci_obj,
|
|||
else
|
||||
return -EIO;
|
||||
|
||||
err = kstrtou16(buf, 16, &v16);
|
||||
err = kstrtou16(buf, 16, &val);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
err = drci_wr_reg(dci_obj->usb_device, reg_addr, cpu_to_le16(v16));
|
||||
err = drci_wr_reg(dci_obj->usb_device, reg_addr, val);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
|
@ -1295,7 +1295,7 @@ hdm_probe(struct usb_interface *interface, const struct usb_device_id *id)
|
|||
err = drci_wr_reg(usb_dev,
|
||||
DRCI_REG_BASE + DRCI_COMMAND +
|
||||
ep_desc->bEndpointAddress * 16,
|
||||
cpu_to_le16(1));
|
||||
1);
|
||||
if (err < 0)
|
||||
pr_warn("DCI Sync for EP %02x failed",
|
||||
ep_desc->bEndpointAddress);
|
||||
|
|
Loading…
Reference in a new issue