Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to compile the exynos5420 kernel for v2awifi, v2awifi needs the same definitions as v1awifi. without, compile fails #10

Open
wants to merge 4 commits into
base: lineage-17.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions drivers/usb/gadget/composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ static u8 override_id(struct usb_composite_dev *cdev, u8 *desc)
return *desc;
}

#ifdef CONFIG_V1A
#if defined(CONFIG_V1A) || defined(CONFIG_V2A)
static void composite_redriver_work(struct work_struct *data)
{
struct usb_composite_dev *cdev = container_of(data, struct usb_composite_dev, redriver_work);
Expand Down Expand Up @@ -1658,7 +1658,7 @@ static int composite_bind(struct usb_gadget *gadget)
goto fail;

INFO(cdev, "%s ready\n", composite->name);
#ifdef CONFIG_V1A
#if defined(CONFIG_V1A) || defined(CONFIG_V2A)
INIT_WORK(&cdev->redriver_work, composite_redriver_work);
#endif
return 0;
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/gadget/exynos_ss_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2548,7 +2548,7 @@ static void exynos_ss_udc_irq_connectdone(struct exynos_ss_udc *udc)
}
#endif
#endif
#ifdef CONFIG_V1A
#if defined(CONFIG_V1A) || defined(CONFIG_V2A)
udc->speed_limit = udc->gadget.speed;
printk(KERN_ERR"usb: Update the speed limit value %d \n",udc->speed_limit);
#endif
Expand Down
2 changes: 1 addition & 1 deletion include/linux/usb/composite.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ struct usb_composite_dev {
*/
bool mute_switch;
bool force_disconnect;
#ifdef CONFIG_V1A
#if defined(CONFIG_V1A) || defined(CONFIG_V2A)
struct work_struct redriver_work;
#endif
#endif
Expand Down