Skip to content
Snippets Groups Projects
Commit 31dd8efe authored by Bryan O'Donoghue's avatar Bryan O'Donoghue Committed by Tom Rini
Browse files

usb: composite convert __set_bit to generic_set_bit


Compiling the f_mass_storage driver for an x86 target results in a
compilation error as set_bit and clear_bit are provided by bitops.h

To address that situation we discussed on the list moving to
genetic_set_bit() instead.

Doing a quick grep for similar situations in drivers/usb shows that the
composite device is using __set_bit().

This patch switches over to generic_set_bit to maintain consistency between
the two gadget drivers.

Signed-off-by: default avatarBryan O'Donoghue <pure.logic@nexus-software.ie>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Marek Vasut <marex@denx.de>
parent 5ac73f68
No related branches found
No related tags found
No related merge requests found
...@@ -378,7 +378,7 @@ static int set_config(struct usb_composite_dev *cdev, ...@@ -378,7 +378,7 @@ static int set_config(struct usb_composite_dev *cdev,
ep = (struct usb_endpoint_descriptor *)*descriptors; ep = (struct usb_endpoint_descriptor *)*descriptors;
addr = ((ep->bEndpointAddress & 0x80) >> 3) addr = ((ep->bEndpointAddress & 0x80) >> 3)
| (ep->bEndpointAddress & 0x0f); | (ep->bEndpointAddress & 0x0f);
__set_bit(addr, f->endpoints); generic_set_bit(addr, f->endpoints);
} }
result = f->set_alt(f, tmp, 0); result = f->set_alt(f, tmp, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment