Skip to content

Commit

Permalink
usb: gadget: renesas_usbhs: modify function name of usbhs_set_device_…
Browse files Browse the repository at this point in the history
…xx()

it was device configuration setting function, not only speed.
This patch modify function name usbhs_set_device_speed() -> usbhs_set_device_config()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Kuninori Morimoto authored and Felipe Balbi committed Dec 12, 2011
1 parent fc9d5c7 commit 3dd4926
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/usb/renesas_usbhs/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static void usbhsc_bus_init(struct usbhs_priv *priv)
/*
* device configuration
*/
int usbhs_set_device_speed(struct usbhs_priv *priv, int devnum,
int usbhs_set_device_config(struct usbhs_priv *priv, int devnum,
u16 upphub, u16 hubport, u16 speed)
{
struct device *dev = usbhs_priv_to_dev(priv);
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/renesas_usbhs/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ int usbhs_frame_get_num(struct usbhs_priv *priv);
/*
* device config
*/
int usbhs_set_device_speed(struct usbhs_priv *priv, int devnum, u16 upphub,
int usbhs_set_device_config(struct usbhs_priv *priv, int devnum, u16 upphub,
u16 hubport, u16 speed);

/*
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/renesas_usbhs/mod_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ static struct usbhsh_device *usbhsh_device_alloc(struct usbhsh_hpriv *hpriv,
udev->usbv = usbv;

/* set device config */
usbhs_set_device_speed(priv,
usbhs_set_device_config(priv,
usbhsh_device_number(hpriv, udev),
usbhsh_device_number(hpriv, udev),
0, /* FIXME no parent */
Expand Down Expand Up @@ -433,7 +433,7 @@ struct usbhsh_ep *usbhsh_endpoint_alloc(struct usbhsh_hpriv *hpriv,

/*
* usbhs_pipe_config_update() should be called after
* usbhs_device_config()
* usbhs_set_device_config()
* see
* DCPMAXP/PIPEMAXP
*/
Expand Down

0 comments on commit 3dd4926

Please sign in to comment.