From patchwork Fri Oct 17 23:58:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38999 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F257C2054E for ; Fri, 17 Oct 2014 23:58:21 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id a1sf980300wgh.1 for ; Fri, 17 Oct 2014 16:58:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=mz5ynpGaJ0WPKETos+AeSZ0TlF6aTUar/n899Dh1VV0=; b=d3AnW6XE9SSRumUQ7QH+qZ9e9+dG3nBbEu294dO5r9z2akLqqCyQ5fozvubo65J3e2 vzRM2ScS1SWmWzbeZbnBlIRTQk2kypcxyWqbE1sNoHaOVBUArn1gx4N43uXket1ZzCby JuzMtWfpZYRxYWJICVw8o82uXfTn+VhdIngbnknF7YWNfC056EUUU0zyme7TAy9kkA1p uubpxilwNjTJsJm7dPbelgrd8rQNquNtlxc3iKD9T9d4bWMZTxyFJXbxjrPTLecgmYEg h53gJaGK/ZFOZ4R+aYKN5GwB9O+yTAsyTpWYFQjHVAPhF5R9yIaESPM6tZdATAs7lrGm T0iA== X-Gm-Message-State: ALoCoQk0WLd22mRTm9cwR77SN7v2KYAw+I4QjhEbrDJoMhbM8hq6qy7hkpYGz+jncR0uATTsHwg0 X-Received: by 10.194.19.67 with SMTP id c3mr1866750wje.0.1413590300891; Fri, 17 Oct 2014 16:58:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.170 with SMTP id l10ls265986lah.18.gmail; Fri, 17 Oct 2014 16:58:20 -0700 (PDT) X-Received: by 10.112.146.37 with SMTP id sz5mr11921391lbb.27.1413590300544; Fri, 17 Oct 2014 16:58:20 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id ba16si4192874lab.35.2014.10.17.16.58.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 16:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id gm9so1476188lab.41 for ; Fri, 17 Oct 2014 16:58:20 -0700 (PDT) X-Received: by 10.112.42.114 with SMTP id n18mr12096258lbl.44.1413590300385; Fri, 17 Oct 2014 16:58:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp321832lbz; Fri, 17 Oct 2014 16:58:19 -0700 (PDT) X-Received: by 10.70.38.165 with SMTP id h5mr11349036pdk.121.1413590298905; Fri, 17 Oct 2014 16:58:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si2263190pdp.169.2014.10.17.16.58.18 for ; Fri, 17 Oct 2014 16:58:18 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751645AbaJQX6Q (ORCPT + 3 others); Fri, 17 Oct 2014 19:58:16 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:51986 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751471AbaJQX6Q (ORCPT ); Fri, 17 Oct 2014 19:58:16 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HNwFLn030176 for ; Fri, 17 Oct 2014 18:58:15 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HNwFPo002343 for ; Fri, 17 Oct 2014 18:58:15 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 18:58:14 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HNwEp3023173; Fri, 17 Oct 2014 18:58:15 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Felipe Balbi Subject: [PATCH] usb: gadget: udc: core: prepend udc_attach_driver with usb_ Date: Fri, 17 Oct 2014 18:58:04 -0500 Message-ID: <1413590284-31283-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , No functional changes, just adding a prefix which should have been there from the start. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/configfs.c | 2 +- drivers/usb/gadget/udc/udc-core.c | 4 ++-- include/linux/usb/gadget.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index d25f9f3..7564814 100644 --- a/drivers/usb/gadget/configfs.c +++ b/drivers/usb/gadget/configfs.c @@ -271,7 +271,7 @@ static ssize_t gadget_dev_desc_UDC_store(struct gadget_info *gi, ret = -EBUSY; goto err; } - ret = udc_attach_driver(name, &gi->composite.gadget_driver); + ret = usb_udc_attach_driver(name, &gi->composite.gadget_driver); if (ret) goto err; gi->udc_name = name; diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index 135504b..e31d574 100644 --- a/drivers/usb/gadget/udc/udc-core.c +++ b/drivers/usb/gadget/udc/udc-core.c @@ -411,7 +411,7 @@ err1: return ret; } -int udc_attach_driver(const char *name, struct usb_gadget_driver *driver) +int usb_udc_attach_driver(const char *name, struct usb_gadget_driver *driver) { struct usb_udc *udc = NULL; int ret = -ENODEV; @@ -435,7 +435,7 @@ out: mutex_unlock(&udc_lock); return ret; } -EXPORT_SYMBOL_GPL(udc_attach_driver); +EXPORT_SYMBOL_GPL(usb_udc_attach_driver); int usb_gadget_probe_driver(struct usb_gadget_driver *driver) { diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 70965fc..70ddb39 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -924,7 +924,7 @@ extern int usb_add_gadget_udc_release(struct device *parent, struct usb_gadget *gadget, void (*release)(struct device *dev)); extern int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget); extern void usb_del_gadget_udc(struct usb_gadget *gadget); -extern int udc_attach_driver(const char *name, +extern int usb_udc_attach_driver(const char *name, struct usb_gadget_driver *driver); /*-------------------------------------------------------------------------*/