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
1515 #include "regs-sys.h"
1616 #include "regs-usb-hsotg-phy.h"
1717
18+enum samsung_usb_phy_type {
19+ USB_PHY_TYPE_DEVICE,
20+ USB_PHY_TYPE_HOST,
21+};
22+
1823 static int s3c_usb_otgphy_init(struct platform_device *pdev)
1924 {
2025 struct clk *xusbxti;
arch/arm/plat-samsung/include/plat/usb-phy.h+0−2
@@ -7,8 +7,6 @@ · 6 unmodified lines
77 #ifndef __PLAT_SAMSUNG_USB_PHY_H
88 #define __PLAT_SAMSUNG_USB_PHY_H __FILE__
99
10−#include <linux/usb/samsung_usb_phy.h>
11−
1210 extern int s5p_usb_phy_init(struct platform_device *pdev, int type);
1311 extern int s5p_usb_phy_exit(struct platform_device *pdev, int type);
1412
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−
14−enum 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