History

ARM: s3c64xx: squash samsung_usb_phy.h into setup-usb-phy.c

This is only used by arch/arm/mach-s3c64xx/setup-usb-phy.c $ git grep samsung_usb_phy_type include/linux/usb/samsung_usb_phy.h:enum samsung_usb_phy_type { $ git grep USB_PHY_TYPE_DEVICE arch/arm/mach-s3c64xx/setup-usb-phy.c: if (type == USB_PHY_TYPE_DEVICE) arch/arm/mach-s3c64xx/setup-usb-phy.c: if (type == USB_PHY_TYPE_DEVICE) include/linux/usb/samsung_usb_phy.h: USB_PHY_TYPE_DEVICE, $ git grep USB_PHY_TYPE_HOST include/linux/usb/samsung_usb_phy.h: USB_PHY_TYPE_HOST, Actually, 'enum samsung_usb_phy_type' is unused; the 'type' parameter has 'int' type. Anyway, there is no need to declare this enum in the globally visible header. Squash the header.

Masahiro Yamada committed 7 years ago

Commit d1dec5c1 parent 1fa70c73 files · +5 −19Browse files

Unified · Split

3 files
  1. arch/arm/mach-s3c64xx/setup-usb-phy.c +5 −0
  2. arch/arm/plat-samsung/include/plat/usb-phy.h +0 −2
  3. include/linux/usb/samsung_usb_phy.h +0 −17
arch/arm/mach-s3c64xx/setup-usb-phy.c+5−0
@@ -15,6 +15,11 @@ · 14 unmodified lines
15#include "regs-sys.h"15#include "regs-sys.h"
16#include "regs-usb-hsotg-phy.h"16#include "regs-usb-hsotg-phy.h"
17 17
18enum samsung_usb_phy_type {
19 USB_PHY_TYPE_DEVICE,
20 USB_PHY_TYPE_HOST,
21};
22
18static int s3c_usb_otgphy_init(struct platform_device *pdev)23static int s3c_usb_otgphy_init(struct platform_device *pdev)
19{24{
20 struct clk *xusbxti;25 struct clk *xusbxti;
arch/arm/plat-samsung/include/plat/usb-phy.h+0−2
@@ -7,8 +7,6 @@ · 6 unmodified lines
7#ifndef __PLAT_SAMSUNG_USB_PHY_H7#ifndef __PLAT_SAMSUNG_USB_PHY_H
8#define __PLAT_SAMSUNG_USB_PHY_H __FILE__8#define __PLAT_SAMSUNG_USB_PHY_H __FILE__
9 9
10#include <linux/usb/samsung_usb_phy.h>
11
12extern int s5p_usb_phy_init(struct platform_device *pdev, int type);10extern int s5p_usb_phy_init(struct platform_device *pdev, int type);
13extern int s5p_usb_phy_exit(struct platform_device *pdev, int type);11extern int s5p_usb_phy_exit(struct platform_device *pdev, int type);
14 12
include/linux/usb/samsung_usb_phy.h+0−17
@@ -1,17 +0,0 @@
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2012 Samsung Electronics Co.Ltd
4 * http://www.samsung.com/
5 *
6 * Defines phy types for samsung usb phy controllers - HOST or DEIVCE.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
12 */
13
14enum samsung_usb_phy_type {
15 USB_PHY_TYPE_DEVICE,
16 USB_PHY_TYPE_HOST,
17};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t