WSL2-Linux-Kernel/drivers/usb/phy
Suzuki K Poulose 418e3ea157 bus_find_device: Unify the match callback with class_find_device
There is an arbitrary difference between the prototypes of
bus_find_device() and class_find_device() preventing their callers
from passing the same pair of data and match() arguments to both of
them, which is the const qualifier used in the prototype of
class_find_device().  If that qualifier is also used in the
bus_find_device() prototype, it will be possible to pass the same
match() callback function to both bus_find_device() and
class_find_device(), which will allow some optimizations to be made in
order to avoid code duplication going forward.  Also with that, constify
the "data" parameter as it is passed as a const to the match function.

For this reason, change the prototype of bus_find_device() to match
the prototype of class_find_device() and adjust its callers to use the
const qualifier in accordance with the new prototype of it.

Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Andreas Noever <andreas.noever@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Corey Minyard <minyard@acm.org>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: David Kershner <david.kershner@unisys.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: David Airlie <airlied@linux.ie>
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Harald Freudenberger <freude@linux.ibm.com>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michael Jamet <michael.jamet@intel.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
Cc: Sebastian Ott <sebott@linux.ibm.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Yehezkel Bernat <YehezkelShB@gmail.com>
Cc: rafael@kernel.org
Acked-by: Corey Minyard <minyard@acm.org>
Acked-by: David Kershner <david.kershner@unisys.com>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Wolfram Sang <wsa@the-dreams.de> # for the I2C parts
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-24 05:22:31 +02:00
..
Kconfig usb: gadget: fsl: fix link error against usb-gadget module 2019-05-03 09:13:47 +03:00
Makefile usb: phy: Add Kconfig entry for Tegra PHY driver 2018-04-23 09:50:57 +02:00
of.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-ab8500-usb.c usb: phy: ab8500: silence some uninitialized variable warnings 2018-10-18 19:44:39 +02:00
phy-am335x-control.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
phy-am335x-control.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-am335x.c usb: phy: am335x: fix race condition in _probe 2019-01-28 15:31:43 +02:00
phy-fsl-usb.c usb/phy: fix PPC64 build errors in phy-fsl-usb.c 2018-07-17 10:12:51 +03:00
phy-fsl-usb.h USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-generic.c usb: phy-generic: Use gpiod_set_value_cansleep 2018-03-13 10:47:52 +02:00
phy-generic.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-gpio-vbus-usb.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-isp1301-omap.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-isp1301.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
phy-keystone.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-mv-usb.c USB: move many drivers to use DEVICE_ATTR_WO 2018-01-24 08:49:52 +01:00
phy-mv-usb.h USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-mxs-usb.c usb: phy: mxs: fix spelling mistake "stardard" -> "standard" 2018-09-20 13:16:14 +02:00
phy-omap-otg.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-tahvo.c USB: move many drivers to use DEVICE_ATTR_RO 2018-01-24 08:49:52 +01:00
phy-tegra-usb.c usb: tegra: Move utmi-pads reset from ehci-tegra to tegra-phy 2018-04-23 09:50:57 +02:00
phy-twl6030-usb.c usb: phy: twl6030-usb: fix possible use-after-free on remove 2019-02-13 13:05:35 +02:00
phy-ulpi-viewport.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-ulpi.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy.c USB: phy: drop legacy board-file support 2018-04-22 15:58:24 +02:00